java Programming Glossary: joincolumns
A class that behaves like @Entity and @Embeddable http://stackoverflow.com/questions/1029745/a-class-that-behaves-like-entity-and-embeddable Integer id @CollectionOfElements @JoinTable name PLAYER joinColumns @JoinColumn name TEAM_ID @IndexColumn name PLAYER_INDEX private..
Hibernate CollectionOfElements EAGER fetch duplicates elements http://stackoverflow.com/questions/1093153/hibernate-collectionofelements-eager-fetch-duplicates-elements @CollectionOfElements @JoinTable name synonymmappingvalues joinColumns @JoinColumn name keyId @Column name value nullable false @Sort..
Can add extra field(s) to @ManyToMany Hibernate extra table? http://stackoverflow.com/questions/1153409/can-add-extra-fields-to-manytomany-hibernate-extra-table fetch FetchType.LAZY @JoinTable name student_course joinColumns @JoinColumn name course_id inverseJoinColumns @JoinColumn name.. fetch FetchType.LAZY @JoinTable name student_course joinColumns @JoinColumn name student_id inverseJoinColumns @JoinColumn.. @JoinTable table @Table name STUDENT_COURSE joinColumns @JoinColumn name STUDENT_ID private Set JoinedStudentCourse..
Storing a Map<String,String> using JPA http://stackoverflow.com/questions/3393649/storing-a-mapstring-string-using-jpa name value @CollectionTable name example_attributes joinColumns @JoinColumn name example_id Map String String attributes new..
Hibernate - @ElementCollection - Strange delete/insert behavior http://stackoverflow.com/questions/3742897/hibernate-elementcollection-strange-delete-insert-behavior @ElementCollection @CollectionTable name PERSON_LOCATIONS joinColumns @JoinColumn name PERSON_ID private List Location locations ..... @ElementCollection @CollectionTable name PERSON_LOCATIONS joinColumns @JoinColumn name PERSON_ID @OrderColumn private List Location..
How to annotate MYSQL autoincrement field with JPA annotations http://stackoverflow.com/questions/4102449/how-to-annotate-mysql-autoincrement-field-with-jpa-annotations CascadeType.MERGE @JoinTable name operator_authority_role joinColumns @JoinColumn name operator_id referencedColumnName id inverseJoinColumns..
how to make hibernate ignore class variables that are not mapped! http://stackoverflow.com/questions/4662582/how-to-make-hibernate-ignore-class-variables-that-are-not-mapped fetch FetchType.EAGER @JoinTable name user_team joinColumns @JoinColumn name user_id inverseJoinColumns @JoinColumn name..
Mapping ManyToMany with composite Primary key and Annotation: http://stackoverflow.com/questions/6405746/mapping-manytomany-with-composite-primary-key-and-annotation @AssociationOverrides @AssociationOverride name pk.student joinColumns @JoinColumn name student_id @AssociationOverride name pk.teachingClass.. name student_id @AssociationOverride name pk.teachingClass joinColumns @JoinColumn name teachingClass_id public class StudentTClass..
|