-->
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: reverse engineer tools and setting up lazy locking
PostPosted: Sun Jan 02, 2011 12:03 am 
Newbie

Joined: Sun Dec 26, 2010 5:55 pm
Posts: 10
I want to use lazy locking for concurrency with hibernate. The best approach explained in the book Java persistence
with hibernate is to have a class member "private int version".

Now, I already have a database schema.
When i reverse engineer the database, I get POJO's. But they lack the "private int version"
class member because the database tables do not contain "version" columns.
And also they lack the required setting in the XML.

Is there a way to reverse engineer a database and make Hibernate tools add the "version" data member to every
generate class and to make the necessary settings in the XML mapping files automatically?

Thank you for your help and time.
jenia


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.