-->
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: single domain and single hbm for two or more tables
PostPosted: Sat Oct 18, 2008 7:48 am 
Newbie

Joined: Sat Oct 18, 2008 7:33 am
Posts: 1
Hi all,
Is it possible to create single domain with single hbm for two or more tables that are related by a primary key?
For example, consider i have three tables:
t1(colx-primary, coly),
t2(colm-Ref-t1-colx,coln),
t3(cola-Ref-t2-coln, colb, colc)

my domain(POJO) doesnot require every column from every table, so here my only pojo is like:
class mydomain{
type colx,
type coln,
type colc
}
i have to use only one hbm file. guys please help me to solve it. i am trying it for the past one week without any success.
plz Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 18, 2008 9:52 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
Check this: http://www.hibernate.org/hib_docs/v3/re ... ation-join


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.