Package ejava.examples.orm.rel.annotated
Class Applicant
- java.lang.Object
-
- ejava.examples.orm.rel.annotated.Applicant
-
@Entity public class Applicant extends Object
The class provides a set of OneToOne relationship examples. It contains a uni-directional, non-primary key relationship to Person and a bi-directional, non-primary key relationship with Borrower. In both cases the Applicant owns the relationship. This means that the foreign key forming the relationships will exist in the Applicant's table.
-
-
Constructor Summary
Constructors Constructor Description Applicant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BorrowergetBorrower()longgetId()PersongetIdentity()private StringmyInstance()voidsetBorrower(Borrower borrower)voidsetIdentity(Person identity)StringtoString()
-