many-to-one
JPA: unidirectional many-to-one and cascading delete
Say I have a unidirectional @ManyToOne relationship like the following: @Entity public class Parent implements Serializable {[详细]
2023-03-30 16:05 分类:问答Programatically specify lazy loading for many-to-one in hibernate
I am using Hibernate 3.6 with Spring 3.0.5. I have the following mapping for a User object <class name=\"foo.User\" table=\"FOO_USER\">[详细]
2023-03-28 18:55 分类:问答many-to-one and where clause
I am working on a legacy database which is quite intricate. The table customers is shared with the suppliers and who created this structure used a flag to identify the customers.[详细]
2023-03-22 22:55 分类:问答Resolve many-to-one, child before parent table problem
In my program, I need to make an organization chart starting with individuals and grouping them under a manager, then group those managers under senior managers etc... How do I do this with regards to[详细]
2023-03-21 06:46 分类:问答Create a bidirectional ManyToOne relation
Hi I try to create a ManyToOne relation but get stucked. I have a BILL and a Booking Class The realation is :[详细]
2023-03-19 18:05 分类:问答avoid relation table in Hibernate's mapping one-to-many(or one-to-many) association into db tables
I am new to Hibernate. I notice that in Hibernate, mapping the java classes into database tables often involve relation tables, even sometimes relation tables are not necessary(Like in a one-to-many r[详细]
2023-03-19 13:49 分类:问答Many-to-one relationship in Hibernate
I would like to establish a relationship many-to-one between two fields on database. I am using PostgreSQL database and Hibernate. The tables are ApplicationField and Device. The first one has 2 colum[详细]
2023-03-18 02:27 分类:问答Construct JPA query for a OneToMany relation
I\'ve those 2 entities Class A { @OneToMany(mappedBy=\"a\") private List<B> bs; } Class B { @ManyToOne[详细]
2023-03-17 13:13 分类:问答Hibernate @ManyToOne remove entry at One side, set FK to NULL at Many side
I\'m trying to learn to work with Hibernate but probably i don\'t understand @ManyToOne and inverse relations. I have two entities Author and Department. One Author has one Department, One Department[详细]
2023-03-17 11:57 分类:问答How to prevent unnecessary select on insert?
I have the following scenario (in Java / Hibernate): I have two entity classes: X and Y. X has a @ManyToOne association to Y which is not cascaded.[详细]
2023-03-15 03:37 分类:问答
加载中,请稍侯......