Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.oracle.hibernate;
- import javax.persistence.*;
- @Entity
- @Table(name = "identity_providers")
- public class IdentityProviders {
- private int identity_provider_id;
- private short attr;
- private short protocols;
- private String issuer;
- private String cert1;
- private String cert2;
- private short is_tenant_default;
- public IdentityProviders() {
- }
- public IdentityProviders(String issuer) {
- this.issuer = issuer;
- }
- @Id
- @Column(name = "identity_provider_id")
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- public int getIdentity_provider_id() {
- return identity_provider_id;
- }
- public void setIdentity_provider_id(int identity_provider_id) {
- this.identity_provider_id = identity_provider_id;
- }
- public short getAttr() {
- return attr;
- }
- public void setAttr(short attr) {
- this.attr = attr;
- }
- public short getProtocols() {
- return protocols;
- }
- public void setProtocols(short protocols) {
- this.protocols = protocols;
- }
- @ManyToMany(targetEntity=IdentityProviders.class, mappedBy="identity_providers", fetch=FetchType.EAGER)
- public String getIssuer() {
- return issuer;
- }
- public void setIssuer(String issuer) {
- this.issuer = issuer;
- }
- public String getCert1() {
- return cert1;
- }
- public void setCert1(String cert1) {
- this.cert1 = cert1;
- }
- public String getCert2() {
- return cert2;
- }
- public void setCert2(String cert2) {
- this.cert2 = cert2;
- }
- public short getIs_tenant_default() {
- return is_tenant_default;
- }
- public void setIs_tenant_default(short is_tenant_default) {
- this.is_tenant_default = is_tenant_default;
- }
- public boolean equals(Object obj) {
- if (obj == null) return false;
- if (!this.getClass().equals(obj.getClass())) return false;
- IdentityProviders obj2 = (IdentityProviders)obj;
- if((this.identity_provider_id == obj2.getIdentity_provider_id()))
- {
- return true;
- }
- return false;
- }
- public int hashCode() {
- int tmp = 0;
- tmp = Integer.valueOf(identity_provider_id).hashCode();
- return tmp;
- }
- }
Add Comment
Please, Sign In to add comment