-->
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 strategy
PostPosted: Mon Sep 01, 2008 9:02 am 
Newbie

Joined: Tue Jan 31, 2006 8:00 am
Posts: 14
Hi there,

We have finalised on a Hibernate implementation. Do post your thoughts on the same. We don't want to depend on any IDE for Hibernate code generation as this has to part of the build script deliverable.

1) Since we are interacting with a legacy database we plan to use the
Middlegen task for generating all hbm mapping files
2) Use ant task hbm2java for generating all POJO artifacts.

We plan to interject "named queries" in hbm xml files so these queries can be overwritten in case the build is generated again and again. What is the popular approach for handling this.
In case of java files we can create custom classes and extend the generated POJO's and preserve our custom code from being overwritten.

Let me know what is the popular approach for storing and harnessing named queries.


Regards,


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.