-->
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.  [ 6 posts ] 
Author Message
 Post subject: Controlling reveng when using jdbcconfiguration and hbm2java
PostPosted: Wed Jul 04, 2007 11:13 am 
Newbie

Joined: Fri Jun 15, 2007 2:32 pm
Posts: 16
Hibernate version:
3.2.4.sp1

This is a snipet of my ant task:

Code:
<hibernatetool destdir="../src">
        <jdbcconfiguration propertyfile="reveng.db.properties"
                           revengfile="reveng.conf.xml"
                           packagename="com.mypackage" />

        <hbm2java jdk5="true" ejb3="true"/>

</hibernatetool>


I am using jdbcconfiguration because I want the mappings to be done automatically according to the DB.

But I also want that some of the classes generated by the reveng will have a toString method.

How can I do that?
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 10, 2007 11:31 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
use reveng.xml to specify meta attributes like use-in-equals.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 10, 2007 3:04 pm 
Newbie

Joined: Fri Jun 15, 2007 2:32 pm
Posts: 16
Could you please give an example?
According to the hibernate-reverse-engineering-3.0.dtd there cannot be a <meta> tag. Where do I need to put it and how can I connect it to the hibernatetool tag.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 11, 2007 3:03 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what version of the tools are you using ? I guess not the latest one.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 1:25 pm 
Newbie

Joined: Fri Jun 15, 2007 2:32 pm
Posts: 16
I am using HobernateTools 3.2.0 Beta9a


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 17, 2007 3:11 pm 
Newbie

Joined: Fri Jun 15, 2007 2:32 pm
Posts: 16
Could you please give a full example of the file?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.