Top "One-to-one" questions

Refers to the quantity of an entity as a relationship to another entity.

Golang Gorm one-to-many with has-one

I'm trying to learn Go and Gorm by building a little prototype order management app. The database is MySQL. With …

go one-to-many one-to-one go-gorm
Hibernate one-to-one, No row with the given identifier exists exception

I need a link between two entities, so I use a one-to-one @Entity @Table(name = "T_USER") public class User …

java hibernate exception one-to-one
Hibernate @OneToOne executes multiple queries even with @Fetch(FetchMode.JOIN)

Consider and Employee and Address relationship. There is a One-to-one mapping between Employee and Address. Following are models: @Entity @Table(…

hibernate query-optimization fetch one-to-one
One to One delete on cascade

I have 2 classes: Entry and Content. public class Entry implements Serializable { @OneToOne(cascade=CascadeType.ALL) private Content content; } And Content …

hibernate jpa one-to-one
Hibernate: AnnotationException: Unknown mappedBy in ... referenced property unknown on reverse (mappedBy), bi-directional @OneToOne associations

I have the following simple design: (source: kawoolutions.com) That's basically a workaround for non-disjoint inheritance which JPA doesn't support. …

hibernate jpa mapping one-to-one bidirectional
Entity Framework saving data in one-to-one associations

I'm trying to use the foreign key association approach to achieve a one-to-one association in EF. In my case there's …

entity-framework entity-framework-4.1 foreign-key-relationship one-to-one
How does django one-to-one relationships map the name to the child object?

Apart from one example in the docs, I can't find any documentation on how exactly django chooses the name with …

python django one-to-one
1-to-1 relationship causing exception: AssociationSet is in the 'Deleted' state. Given multiplicity constraints

I have set up a 1-to-1 relationship using EF code first following the method prescribed here: Unidirectional One-To-One relationship in …

c# entity-framework entity-framework-4 one-to-one entity-framework-4.3
django difference between - one to one, many to one and many to many

So, this is my first time learning computer language. And I chose python and django. Now, I got many of …

django orm many-to-many one-to-one many-to-one
One-to-one mapping data structure (A,B) with getKey(B) in O(1)?

This question was initially misphrased, see the EDIT below. I'll leave it up for context. I've been thinking about smart …

java contains one-to-one