-->
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: Seperate Pojo and hibernate mapping for diff app flows
PostPosted: Tue Mar 26, 2013 5:17 am 
Newbie

Joined: Tue Mar 26, 2013 5:13 am
Posts: 1
I am working on enhancing an existing application that uses Hibernate as its ORM layer. There are already some DB model classes and corresponding hibernate mapping files defined with lots of relations to other tables/objects. For my changes, I would only need a subset of this data and a few new data fields/relations to some other tables in my object. I just wanted to know, what in your opinion is the best design approach -
[*]reuse the existing mapping. This could lead to lot of data being queried from the DB which I would not even need.
[*]or, create my own pojo class and corresponding mapping with a limited set of data that I need.


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.