Top "One-to-many" questions

one-to-many is relationship between two different object properties.

How does hibernate save one-to-many / many-to-one annotations? (Children not saving)

I've inherited a hibernate application and I've run into issues. It seems that the code does not save the child …

java hibernate annotations one-to-many many-to-one
Hibernate and H2 "Referential integrity constraint violation" for OneToMany bidirectional mapping

So I have two simple beans -- FatKid and Hamburgers. Now, for reasons unbeknownst to me I need to be …

hibernate foreign-keys one-to-many h2 bidirectional
JPA @OneToMany -> Parent - Child Reference (Foreign Key)

i have a Question about referencing ParentEntities from Child Entites ir If i have something like this: Parent.java: @Entity(…

java hibernate jpa parent-child one-to-many
Hibernate Many-To-One Relationship without Primary Key or Join Table

Problem I would like to start by saying that I realize the database structure is atrocious, but I cannot change …

java hibernate one-to-many
One-To-Many relationship gets duplicate objects without using "distinct". Why?

I have 2 classes in a one-to-many relationship and a HQL query that is a bit strange. Even if I have …

java hibernate hql distinct one-to-many
Spring 3 MVC: one-to-many within a dynamic form (add/remove on create/update)

I'm looking for a solution to manage a one-to-many relation within an HTML form using jQuery. I'm developing with Spring, …

java hibernate spring-mvc one-to-many dynamicform
Doctrine 2 OneToMany Cascade SET NULL

The error Cannot delete or update a parent row: a foreign key constraint fails. The classes class Teacher { /** *@ORM\OneToMany(…

doctrine null set one-to-many
Hibernate OneToMany java.lang.StackOverflowError

It's my first question here on stack, so please be gentle :D I'm trying to create hibernate OneToMany relationship. When …

java hibernate stack-overflow one-to-many
AttributeError: 'int' object has no attribute '_sa_instance_state'

I'm working on forum template using Flask. When I attempt creating a new thread in the browser using forms, SQLAlchemy …

python sqlalchemy flask one-to-many flask-sqlalchemy
Hibernate/JPA ManyToOne vs OneToMany

I am reading currently the documentation of Hibernate regarding the entity associations and I come accross a little difficulty to …

hibernate jakarta-ee jpa one-to-many many-to-one