-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate reverse engineering
PostPosted: Thu Jun 28, 2007 7:13 pm 
1) While using hibernate code generation tools, Can i include custom code in the resulting pojos? if so, how do i configure reveng.xml so that it generates hbm.xml accordingly

for example

if i want to override hashcode() method, i would have the following section in hbm.xml
<meta attribute="class-code">
<![CDATA[
public void hashcode() {
----------------------------------------
}

]]>

How do i configure reveng.xml to create this section in hbm.xml


Top
  
 
 Post subject:
PostPosted: Thu Jun 28, 2007 11:06 pm 
Beginner
Beginner

Joined: Mon Jun 25, 2007 11:57 pm
Posts: 28
have similar issues myself, came across a handy post though:

http://forum.hibernate.org/viewtopic.php?t=964231


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.