-->
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.  [ 1 post ] 
Author Message
 Post subject: [3.5.0-SNAPSHOT] Bug: Need to trim() enum names
PostPosted: Tue Dec 15, 2009 4:07 pm 
Newbie

Joined: Thu Nov 19, 2009 1:21 pm
Posts: 5
Again, following the protocol to post here first:

EnumType.nullSafeGet calls Enum.valueOf(enumClass,name) (line 132 of EnumType.java)

That needs to be:

Enum.valueOf(enumClass,name.trim()), because if the enum is stored in a CHAR() instead of a VARCHAR like the DDL generation tends to do, "USER" comes in from the database as "USER " which doesn't map.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.