-->
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: Exporting Enum property as VARCHAR? (INTEGER broken)
PostPosted: Sat Dec 24, 2005 1:30 am 
Newbie

Joined: Thu Jan 06, 2005 8:05 am
Posts: 13
Hi all.

I'm using Hibernate 3.1 and Hibernate Annotations beta-7.

I dunno how to tell Hibernate to export (SchemaExport) my annotated Enum property as VARCHAR, instead of default INTEGER ? I can see it correctly works with VARCHAR enum columns if this column was already created as such by other tool, but how to tell to SchemaExport to create it as VARCHAR and not INTEGER?

BTW, automatic recognition of generated INTEGER column doesn't work with Oracle Thin driver and my Oracle 8.1.7 :-(
It raises exception since it recognizes this INTEGER column as DECIMAL when working with it. If column is VARCHAR, it recognizes it correctly. But I cannot tell SchemaExport to create VARCHAR, so I'm stuck. :-(

Regards,
Vjeran


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 27, 2005 8:31 am 
Newbie

Joined: Tue Dec 27, 2005 8:24 am
Posts: 2
hi, in the latest ejb3 persistence specification (Proposed Final Draft), there is a new annotation Enumerated that should be used to explicitely define type of mapped column. i hope the new spec will be implemented in hibernate soon :)


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.