-->
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: Hibernate Mapping mySQL enum('true','false')
PostPosted: Sat Jan 17, 2004 6:38 am 
Newbie

Joined: Sat Jan 17, 2004 6:31 am
Posts: 1
Hi All,

I would like changing some experiences on Hibernate Persistence Framework, so, somebody knows how can i do a mapping from enum('true','false') MySQL field type ?

I've tried do a lot of things, but i didn't get any success result.

Some help is apreciated.

Obs.: how you can see i've used enum field type, because i don't know other way to do 'boolean' type in mySQL.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 17, 2004 9:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Use a custom UserType if everything else fails. What exactly are your problems? Wrong SQL generated or where does it fail?


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.