-->
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: is that possible to have a single pojo object for two tables
PostPosted: Thu Aug 25, 2005 7:31 am 
Beginner
Beginner

Joined: Tue Jun 21, 2005 2:21 am
Posts: 22
Hi
I need to know whether a single pojo can have reference to two tables .For example i have Occasion and OccasionProperty which has following structure

Occasion
-----------

guid
Name
lastupdateduser
objectcreatedID

----

OccasionProperty
--------------------
guid
Name
BBBB
CCCCC
objectcreatedID
OccasionID -->Guid of Occasion

I need to have this information in a single POJO which has reference to two tables .i need to have a flattened structure rather travesing object using the getter()
if it is possible then how we need to mention this in a mapping file?


kindly help me on this


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 25, 2005 10:15 am 
Regular
Regular

Joined: Thu Dec 02, 2004 7:11 am
Posts: 85
Use join element.


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.