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: Hibernate Maaping for a relation
PostPosted: Sat Dec 17, 2011 12:52 pm 
Newbie

Joined: Mon Oct 26, 2009 6:28 am
Posts: 1
Hello,

I have a three tables.
Code:
property           property_documents       document_master
--------         ----------------------     ------------------
id(pk)                  id(pk)                 id(pk)
name                  property_id(fk)          name
address               document_name           is_active


There is only 1 foreign key in property_documents table. property_documents and document_master has no relation.

I have a two entity classes:
1) Property with id, name, address, documentList (List<String>) as a properties of it
2) Document with id, name, is_active as a properties of it.

How would be my mapping XML for property class?

Please help me. Please let me know if anything missing.


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.