-->
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.  [ 1 post ] 
Author Message
 Post subject: NHibernate Mapping 1 Object To 2 Tables
PostPosted: Mon Sep 05, 2011 11:57 pm 
Newbie

Joined: Mon Sep 05, 2011 11:50 pm
Posts: 1
I recently posted this question on StackOverflow:
http://stackoverflow.com/questions/7314 ... o-2-tables

In a nutshell, I'm trying to map 1 object to 2 tables. During a save, most of the time only 1 table should be updated and reference an existing record in the other table. But sometimes both tables will need updated. It's a bit of a complex scenario, but I don't feel like it's that uncommon of a situation.

How would we accomplish properly saving this object to the appropriate tables? I primarily need help with the mapping. Also, I am using Fluent NHibernate for the mapping, but if we need to we can use config files.

Please take a moment to read the question on StackOverflow. You can answer either here or there. Thank you for your time and help!


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

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.