-->
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: facing design issues in hibernate
PostPosted: Mon Jun 15, 2009 9:03 pm 
Newbie

Joined: Mon Jun 15, 2009 8:55 pm
Posts: 1
I have 3 tables table1-A,B,C,D, table2-E,F,G, table3-H,I,J.
There is a 1-many relationship between tables 1 & 2 <-> B->F and similarly
between F->I. I created entity classes(POJO) for 3 tables.

Now, user has to fill up a page with columns B,F,I i.e 1 column from each table.
And the search results will consist of 2 columns from each table displayed on a separate page.

My issue is how do I take care of mapping. Do I create
1) 3 persistence classes
2) 3 POJOs and 1 persistence class mapped to search result page.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.