-->
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: rev-eng user-type and parameter
PostPosted: Wed Mar 14, 2007 10:14 am 
Regular
Regular

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

I have to include a custom UserType and a parameter for this UserType in my hibernate.reveng.xml-file. is that possible?

if no, how could I include my user-type for some columns when doing reverse-engineering? I try to include the StringValuedEnumUserType form this tutorial: http://www.hibernate.org/273.html.

regards,
christoph.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 19, 2007 11:31 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you can just put the user typename where you normally put a hibernate typename in reveng.xml.

parameters is not supported yet, but you can work around that by defining them in a sepeatre hbm.xml with a <typedef> and just use that name when generating instead.

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