one-to-one
JPA / Hibernate unidirectional one-to-one mapping with shared primary key
I\'m having a very hard time trying to get a unidirectional one-to-one relationship to work with JPA (Provider: Hibernate). In my opinion this should not be too much of a hassle but apparently JPA / H[详细]
2023-02-06 11:00 分类:问答Fluent Nhibernate and HasOne() problems
How do you do a 1 to 1 relationship with fluent nhibernate? I am using ms sql server 2008 and every time I looked the db tables through the database diagram viewer the table that should have one to on[详细]
2023-02-05 20:54 分类:问答Map One-To-One Relationship Doesn't Allow Inserting
I\'m trying to setup a one-to-one mapping from my Users to the UserDetails table.Say I have the following tables in my database:[详细]
2023-02-04 04:05 分类:问答Nested types or other solution for one to one mapped classes
I have a class which needs some functionality to be encapsulated in some way. I was thinking of a nested class, and put that functionality plus some states into it.[详细]
2023-02-03 06:37 分类:问答Deleting from table with @OneToOne annotation
I\'m using JPA2 and Hibernate implementation. I\'ve got simple mapping like this: @Entity class Topic {[详细]
2023-02-02 17:50 分类:问答Hibernate One-to-One Mapping Using Composite Key and Non-primary Property
So here is my problem. I have these two tables which map fine by themselves. There are some additional fields which I removed because they are ir开发者_Go百科relevant. I need a one-to-one mapping betw[详细]
2023-02-01 13:36 分类:问答How to do a Rails 3 join query?
I have the following model class User < ActiveRecord::Base has_many :assignments has_many :roles, :through => :assignments[详细]
2023-01-31 07:48 分类:问答Choose between one-to-one and component in NHibernate
I am trying to map classes User and Profile, just as the following: public class User { public long ID { get; set; }[详细]
2023-01-28 05:28 分类:问答CheckNullability of PrimaryKeyJoinColumn
I have a Entity class that has the ObjectX attribute: @OneToOne(fetch = FetchType.LAZY) @PrimaryKeyJoinColumn[详细]
2023-01-27 08:26 分类:问答How to collapse one-to-one parent-child tables into classes with Fluent NHibernate?
How do I map these existing tables to the classes below? I have the following tables: CREATE TABLE dbo.UserContact ([详细]
2023-01-26 08:41 分类:问答