-->
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.  [ 3 posts ] 
Author Message
 Post subject: General Hibernate Question
PostPosted: Mon May 15, 2006 1:31 pm 
Newbie

Joined: Fri May 12, 2006 3:39 pm
Posts: 13
Hibernate version: 3.1.3

Forgive me if I am not using the proper format for posting, as my question is more general in nature.

I have been attempting to map to 2 java objects with a single database table using Hibernate. I made a post about it on Friday afternoon, and forgive my impatience, but I have been trying to get this to work for nearly a week now.

All I would really like to know is if this is even possible. If it is, then great, I'm sure someone will post a reply to my original post. If not, I would love to know. I haven't found anything explicitly stating that it is, or is not, possible, so any information would be great.

Thank you very much,

--LD


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 15, 2006 3:39 pm 
Regular
Regular

Joined: Thu Jan 29, 2004 10:34 am
Posts: 52
Location: Austin, TX
the common case is when you need one record in the db to be manifested as two objects at runtime. one simple way to do this is to use a hibernate component. one database row can be mapped to multiple components which hibernate handles very nicely during loads/updates.

refer to chapter 8 or 9 of the manual.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 15, 2006 3:52 pm 
Newbie

Joined: Mon May 15, 2006 1:59 pm
Posts: 3
Here is an example: http://forum.hibernate.org/viewtopic.php?t=959462&highlight=


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.