-->
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: multiple persistent mapping problem
PostPosted: Wed May 02, 2007 10:22 am 
Newbie

Joined: Wed May 02, 2007 7:58 am
Posts: 2
Hi,

we have a multiple persistent mapping problem that I cannot resolve.

I have 3 main tables:
- TA_ORGANIZATION
org_code INTEGER PK
- TA_ARTICLE
art_code INTEGER PK
- TA_LANGUAGE
lan_code TEXT PK

Then, I have a table with the relation between TA_ORGANIZATION and TA_ARTICLE:
- TA_ORGART
orgart_org INTEGER PFK
orgart_art INTEGER PFK

and finally I have another table with the translation of each relationship:
- TA_TRANSLATE
tra_org INTEGER PFK
tra_art INTEGER PFK
tra_lan TEXT PFK
tra_vale TEXT

I have made a lot of combinations of Sets, Maps, etc... in the XXX.hbm.xml files, but I am incapable to do it well. I have tried to use some tools to generate the hbm.xml and .java files, but I cannot do it, due to I can get the relations (I use Eclipse and PostgreSQL database).


Please, can somenoe help me and give me the exact files (hbm.xml and java) that I need? It would be enough the hbm.xml file (I hope).


Thank you very much,

_________________
Oriol Barnés Cruz


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 03, 2007 11:37 am 
Newbie

Joined: Wed May 02, 2007 7:58 am
Posts: 2
Please, anybody can help me?


Thanks,

_________________
Oriol Barnés Cruz


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.