1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
@Entity
@Table(name = "r1_reference_identifiant", uniqueConstraints = {})
@Inheritance(strategy = InheritanceType.JOINED)
@DiscriminatorColumn(name="reference.code")
public class R1ReferenceIdentifiant implements java.io.Serializable
{
private static final long serialVersionUID = 1L;
// Fields
private Integer uid;
private Identifiant identifiant;
private Reference reference;
// Constructors
/** default constructor */
public R1ReferenceIdentifiant()
{
}
/** full constructor */
public R1ReferenceIdentifiant(Integer uid, Identifiant identifiant, Reference reference)
{
this.uid = uid;
this.identifiant = identifiant;
this.reference = reference;
}
// Property accessors
@Id
@GeneratedValue()
@Column(name = "UID", unique = true, nullable = false, insertable = true, updatable = true)
public Integer getUid()
{
return this.uid;
}
public void setUid(Integer uid)
{
this.uid = uid;
}
@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
@JoinColumn(name = "IDENTIFIANT_UID", unique = false, nullable = false, insertable = true, updatable = true)
public Identifiant getIdentifiant()
{
return this.identifiant;
}
public void setIdentifiant(Identifiant identifiant)
{
this.identifiant = identifiant;
}
@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
@JoinColumn(name = "REFERENCE_UID", unique = false, nullable = false, insertable = true, updatable = true)
public Reference getReference()
{
return this.reference;
}
public void setReference(Reference reference)
{
this.reference = reference;
}
} |
Partager