one-to-one
Doctrine 1.2: How do i prevent a contraint from being assigned to both sides of a One-to-many relation?
Is there a way to prevent Doctrine from assigning a contraint on both sides of a one-to-one relationship? Ive tried moving the definition from one side to the other and using owning side but it still[详细]
2022-12-26 07:21 分类:问答How to store some of the entity's values in another table using hibernate?
is there a simple way to persist some of the fields in another class and table using hibernate. For example, I have a Person class with name, surname, email, address1, address2, city, country fields.[详细]
2022-12-26 01:03 分类:问答Fluent NHibernate joined tables one-to-one
I think this is a moderately neophyte question.I\'ve been using NHibernate/FluentNHibernate for about 6 months or so, and I think I have a fair grasp of the basics. Now I\'m pushing a little bit beyon[详细]
2022-12-25 22:09 分类:问答Mapping @OneToOne with @Where clause
I am trying to map an entity as following @OneToOne(mappedBy = \"localizedLabel\") @开发者_开发技巧JoinColumn(insertable = false, updatable = false)[详细]
2022-12-24 14:01 分类:问答Ruby on Rails: Best way to tie together two models that correspond one to one
If I have two models that are guaranteed to have a one-to-one correspondence, i.e. if one is created, I will always also need the other, and if one is deleted, I will also want to get rid of the other[详细]
2022-12-22 16:14 分类:问答Mapping two tables 0..n in Hibernate
I have a table Users CREATE TABLE \"USERS\" ( \"ID\" NUMBER NOT NULL , \"LOGINNAME\" VARCHAR2 (150) NOT NULL )[详细]
2022-12-21 07:01 分类:问答One-to-one association and filtering in Linq
Let\'s say I have two tables (Address and Phone) in sql which have one-to-one relationship. I have created corresponding linq to sql classes and changed the association to OneToOne[详细]
2022-12-19 17:31 分类:问答NHibernate unidirectional one-to-one mapping problem
I am trying to create a Unidirectional one-to-one relationship using NHibernate. Example: An Order is given by a Customer.[详细]
2022-12-18 05:42 分类:问答ActiveRecord has_one relationship does not return in certain cases
Given three models that are each nested in each other. If I create the top-level object and build_* the other child objects, I can retrieve all child objects through the relationships before and after[详细]
2022-12-15 07:22 分类:问答Cascade issue when deleting an entity in a one-to-one relationship using Fluent NHibernate
I have the following db tables which I have simplified for this example: Webpage Id, URLIdentifier WebpageMetaData Webpage_id Keywords[详细]
2022-12-15 03:59 分类:问答