Top "One-to-one" questions

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

Django Admin: OneToOne Relation as an Inline?

I am putting together the admin for a satchmo application. Satchmo uses OneToOne relations to extend the base Product model, …

python django django-admin inline one-to-one
Symfony2 Doctrine2 trouble with optional one to one relation

I have a problem with Doctrine2 in Symfony2 and two relationed entities. There is a user-entity that can (not must) …

symfony orm doctrine-orm one-to-one
django OneToOne reverse access

I have these simple classes Class A(models.Model): ... Class Meta(models.Model): a = models.OnetoOneField(A, primary_key=True) …

database django one-to-one
Check if OneToOneField is None in Django

I have two models like this: class Type1Profile(models.Model): user = models.OneToOneField(User, unique=True) ... class Type2Profile(…

python django django-models one-to-one
@OneToOne unidirectional and bidirectional

I have two examples that first is @OneToOne unidirectional mapping and second bidirectional. In unidirectional mapping, the owning-side table must …

jpa one-to-one bidirectional-relation
EF Code First - 1-to-1 Optional Relationship

I want to map an optional 1-to-1 relationship in an existing database with EF Code First. Simple schema: User Username …

ef-code-first one-to-one
JPA (Hibernate) issue with OneToOne mappedBy annotation

I have two tables for while I setup a oneToOne relationship. Bill and BillSimpleEntry. (Each Bill has one BillSimpleEntry Here …

hibernate jpa orm mapping one-to-one
Need an example of a primary-key @OneToOne mapping in Hibernate

Can somebody please give me an example of a unidirectional @OneToOne primary-key mapping in Hibernate ? I've tried numerous combinations, and …

java hibernate annotations one-to-one
Creating PostgreSQL tables + relationships - PROBLEMS with relationships - ONE TO ONE

So I am supposed to create this schema + relationships exactly the way this ERD depicts it. Here I only show …

sql postgresql one-to-many database-schema one-to-one
Optional one-to-one mapping in Hibernate

How do I create an optional one-to-one mapping in the hibernate hbm file? For example, suppose that I have a …

java database hibernate one-to-one