-->
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.  [ 3 posts ] 
Author Message
 Post subject: true_false to boolean?
PostPosted: Wed Dec 03, 2003 6:26 pm 
Beginner
Beginner

Joined: Thu Nov 20, 2003 8:13 pm
Posts: 31
Location: Newport Beach, CA
Given the following Oracle ddl snippet:

enabled CHAR(1) default 'T' not null check (enabled in ('T','F')),

and the following mapping snippet:

<property name="enabled" column="enabled" type="true_false"/>

and the following Java snippet:

private boolean enabled;

why am I getting / how do I fix the following?:

java.sql.SQLException: java.lang.NumberFormatException: T

Do I have to use java.lang.Boolean? I would like to stick with the primitive type.

TIA!
Justin


Top
 Profile  
 
 Post subject: It works fine.
PostPosted: Wed Dec 03, 2003 7:28 pm 
Beginner
Beginner

Joined: Thu Nov 20, 2003 8:13 pm
Posts: 31
Location: Newport Beach, CA
Sorry for the confusion, this in fact works fine!

/me kicks myself


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 07, 2005 7:23 am 
Newbie

Joined: Wed Feb 04, 2004 12:33 pm
Posts: 13
Location: Vienna/Austria
Hi Justin,

one of my students got the same problem ...
any hints' what U have done to resolve this ...

Thx in advance
K:)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.