Thread:
 Possible mismatch 
 adamc   08 Mar 2005, 13:29 
 Re: Possible mismatch 
 magic   11 Mar 2005, 08:25 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: magic (11 Mar 2005, 08:25) Replies: 0, Views: 39516
Subject: Re: Possible mismatch
On 08 Mar 2005 13:29, adamc wrote: 
 
>in the nullSafeGet() method you use
 
>if (!resultSet.wasNull()) {
>    result = Enum.valueOf(clazz, name);
>}
 
>Which works in terms of the <em>name</em> of the enum instance;
however,  
>in the nullSafeSet() method you use
 
>preparedStatement.setString(index, value.toString());
 
You're right. I modified the source. Thanks.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]