-->
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.  [ 5 posts ] 
Author Message
 Post subject: Reveng question.
PostPosted: Thu Apr 26, 2007 4:37 am 
Senior
Senior

Joined: Sat Apr 21, 2007 11:01 pm
Posts: 144
My revenge file is pretty simple:
Code:
<hibernate-reverse-engineering>
   <table-filter match-catalog="goFurther" match-schema="dbo" match-name=".*"/>
</hibernate-reverse-engineering>

Is it posible to do something along the lines of?:
Code:
<hibernate-reverse-engineering>
   <table-filter match-catalog="goFurther" match-schema="dbo" match-name=".*"/>
   <table catalog="goFurther" schema="dbo" name="*">
      <primary-key>
         <generator class="native" />
      </primary-key>
      <column name="id" />
      <column name="version" property="version" type="integer" />
   </table>
</hibernate-reverse-engineering>

basicaly I want a native PK generator, and id & version column mapped for all tables. Can I do this in one reveng tag or to I have to explicitly list all tables?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 26, 2007 5:55 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
easier to use a custom reveng strategy for this.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 26, 2007 5:58 am 
Senior
Senior

Joined: Sat Apr 21, 2007 11:01 pm
Posts: 144
Ok cool, thanks Max. I had a good look for docs on custom reveng strategies but info for it seems to be a little thin on the ground. What would you regard as the best documentation for custom reveng strategies?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 26, 2007 6:03 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the source code.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 26, 2007 6:05 am 
Senior
Senior

Joined: Sat Apr 21, 2007 11:01 pm
Posts: 144
lol :P


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.