Top "Hibernate-onetomany" questions

Questions regarding the implementation of one to many relations using Hibernate ORM framework

TransientObjectException - object references an unsaved transient instance - save the transient instance before flushing

I've come across a few good possible answers to my questions, but this is regarding an upgrade from Hibernate 3.4.0GA …

hibernate jpa hibernate-onetomany
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 (…

hibernate jpa inverse hibernate-onetomany
Hibernate @OneToMany Relationship Causes Infinite Loop Or Empty Entries in JSON Result

I have two entities, an entity "movie" and an entity "Clip" each clip belongs to one movie and a movie …

json hibernate one-to-many hibernate-onetomany
One to many association - Join tables with non primary key column in JPA

I'm working on legacy system, need to read some of the info from database. Below are the table relationship Vendor (…

hibernate jpa one-to-many hibernate-onetomany
Don't change the reference to a collection with cascade="all-delete-orphan"

I am getting an error: Don't change the reference to a collection with cascade="all-delete-orphan" while trying the following operation: …

java hibernate hibernate-onetomany
why hibernate creates a join table for unidirectional OneToMany?

Why hibernate uses a join table for these classes? @Entity public class CompanyImpl { @OneToMany private Set<Flight> flights; @…

hibernate hibernate-onetomany
Hibernate "Provided id of the wrong type expected Long, got class DelayedPostInsertIdentifier" exception

In short: When I try to add New(Unsaved) Entities to one-to-many set of the saved parent, after calling Merge …

java hibernate one-to-many hibernate-onetomany
Hibernate criteria for OneToMany/ManyToOne relationship

I have a OneToMany/ManyToOne relationship between two objects like: public class Company { private Long compid; private String companyName; @OneToMany(…

java many-to-one hibernate-criteria hibernate-onetomany
saveorupdate() does not update collection (list) one-to-many mapping in hibernate

class Student public class Student { private Long id; private String name; private String className; private List<Phone> phones; // …

java hibernate hibernate-mapping hibernate-onetomany