Annotation | Details |
---|---|
@OneToOne | Specifies a one to one relationship with a corresponding object. |
@OneToMany | Specifies a single object that maps to many objects. |
@ManyToOne | Specifies a collection of objects that map to a single object. |
@Entity | Specifies an object that maps to a database table. |
@Table | Specifies which database table this object maps too. |
@JoinColumn | Specifies which column a foregin key is stored in. |
@JoinTable | Specifies an intermediate table that stores foreign keys. |