-->
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: Replace default Types with Enums during ReverseEngineering
PostPosted: Fri Oct 13, 2006 3:42 am 
Regular
Regular

Joined: Sat May 20, 2006 3:49 am
Posts: 78
Hello,

I would like to use some other types for a few columns. I have some enums which I would like to use. Where is the best place in the ReverseEngineeringStrategy to replace the default types with my enums?

Btw: Where can I find the API Doc about the DelegatingReverseEngineeringStrategy/ReverseEngineeringStrategy class?

Regards,

Christoph


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 16, 2006 6:27 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
depends on wether you can identify the type based on the column name or the sql type it self.

if sql-type then use reveng.xml type mappings.

if on name use reveng.xml column mappings or use a custom reveng strategy if it follows a specific pattern so its easier to express in code than in verbose text.

_________________
Max
Don't forget to rate


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.