Top "One-to-many" questions

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

How to create one to many in SQLITE3?

How to create one to many in SQLITE3? I have 2 tables: Mans: _id name 1 antony 2 fred and point _id date …

sql database database-design sqlite one-to-many
How to save parent and child in one shot (JPA & Hibernate)

I start showing you my scenario. This is my parent object: @Entity @Table(name="cart") public class Cart implements Serializable{ @…

java hibernate jpa one-to-many many-to-one
Database design for comments and replies

I want to create two tables one with comments and another with replies, with a one to many relationship between …

mysql database database-design one-to-many
How to remove Create and Edit... from many2one field.?

Please advice me How to remove "Create and Edit..." from many2one field.? that item shows below in the many2…

python xml one-to-many openerp many-to-one
Hibernate Unidirectional Parent/Child relationship - delete() performs update on child table instead of delete

If I delete a record from the Parent table I want the corresponding records in the child table to be …

java hibernate mapping one-to-many
How to create a one-to-many relationship with JDBI SQL object API?

I'm creating a simple REST application with dropwizard using JDBI. The next step is to integrate a new resource that …

java join one-to-many dropwizard jdbi
Hibernate insert cascade not inserting foreign key

I have two entities: @Entity public class File ....... @Id @GeneratedValue(strategy=GenerationType.AUTO) private int id; @OneToMany(fetch=FetchType.LAZY, …

hibernate one-to-many many-to-one
JPA - @OneToMany as a Map

This seems like a common enough case, but as JPA newbie, I am having trouble figuring this out. I'm using …

java jpa map one-to-many
SQLAlchemy: Delete object directly from one-to-many relationship without using session.delete()

I have the following SQLAlchemy setup: Base = declarative_base() class Post(Base): __tablename__ = 'post' id = Column(Integer, primary_key=True) …

python mysql session sqlalchemy one-to-many
Hibernate Many-To-One Relationship without Foreign Key but with reverse foreign key

I have the following DB: CREATE TABLE car_owner ( car_owner_id int(11) NOT NULL, car_id_fk int(11) DEFAULT …

java hibernate one-to-many many-to-one