-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: NHibernate and logical business entity.
PostPosted: Wed Feb 07, 2007 11:29 am 
Newbie

Joined: Wed Feb 07, 2007 11:17 am
Posts: 5
I went through the NHibernate documentation and I think I have my answer, but just in case, I would ask the experts here again.

Does NHibernate support the use of logical business entities that doesn't have a 1 to 1 mapping with the underlying database tables? We use a highly normalized database that is cumbersome to use from the middle tier. We would like to define logical entity that would map to multiple tables in the database. My understanding is that NHibernate 1.2 does not yet support this feature. Or did I miss something somewhere?

As a follow up, if we would still like to use NHibernate as the persistence solution. What is the best approach to bridge the logical middle tier entities and the normalized database schema?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 07, 2007 2:32 pm 
Contributor
Contributor

Joined: Sat Sep 24, 2005 11:25 am
Posts: 198
This is really something that can be asked with relation to both schema and desired object model.
In general, NHibernate doesn't support loading a single object from multiply tables, although it can be simulated using joined classes.
Hibernate does have this feature, and it would arrive to NHibernate eventually.
It is currently not planned for the 1.2 release, though.
If it is important to you, feel free to port the functionality from Hibernate (a non trivial task, I must warn you) and submit a patch.

At any rate, open a JIRA issue for it (although one may already exists).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.