hibernate-onetomany
Hibernate: map last row of a @OneToMany relation
I have a relation between element and its names. All historical names as well as the current one are located in table \"element_name\" that has field \"created\". The row last created is the current n[详细]
2023-04-08 12:05 分类:问答Spring Roo Master/Detail & @OneToMany
In reference to Problem with @OneToMany annotation with Spring Roo, the <field:se开发者_如何学JAVAlect... solution works well for create & update.jspx.Any idea how to get this to work for show.[详细]
2023-04-04 19:09 分类:问答Hibernate inverse=''true" and problems when getting one-to-many
I am trying to use the following mapping : <class name=\"Category\" table=\"CATEGORY\" lazy=\"false\">[详细]
2023-03-10 15:22 分类:问答How can I map "insert='false' update='false'" on a composite-id key-property which is also used in a one-to-many FK?
I am working on a legacy code base with an existing DB schema. The existing code uses SQL and PL/SQL to execute queries on the DB. We have been tasked with making a small part of the project database-[详细]
2023-02-09 00:23 分类:问答inverse=true in JPA annotations
In my application I use JPA 2.0 with Hibernate as the persistence provider. I have a one-to-many relationship between two entities (using a @JoinColu开发者_如何转开发mn and not @JoinTable). I wanted t[详细]
2023-02-08 03:02 分类:问答Hibernate - OneToMany - Several Columns
I have those 2 tables Teacher and Contact, a teacher can have x Contacts. So here we are looking at a @OneToMany association.[详细]
2023-01-16 20:04 分类:问答Hibernate One to many
As per hibernate documentation: To map a bidirectional one to many, with the one-to-many side as the owning side, you have to remove the mappedBy element and set the many to one @JoinColumn as inser[详细]
2023-01-16 10:36 分类:问答Hibernate: joining with one of the keys of a multi-keyed table
I\'ve got a table Category and a table TranslatableText. The category is like this create table Category ([详细]
2023-01-16 07:35 分类:问答Hibernate: How do I write the HQL for getting records of an entity without records for its identifying relation
I have Hibernate Objects defined as Class SomeText{ private Long textId; private Set<Tag> Tags = new HashSet<Tag>();[详细]
2023-01-15 08:56 分类:问答Hibernate : OneToMany mapping not based on PK?
I have 2 entities/tables. One is a proper entity, let\'s call it data. It has a number of fields containing so-called \"multilingual codes\".[详细]
2023-01-08 12:02 分类:问答