-->
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: DB2 "Character" data type
PostPosted: Thu Sep 01, 2005 2:51 pm 
Newbie

Joined: Thu Sep 01, 2005 2:44 pm
Posts: 1
I'm having trouble using the sample database with DB2 with hibernate. Specifically, when I generate .hbm files using hibernate-tools the "Character" datatype is producing java Character object members. The database table contains some number of characters in the field but only the first character comes through in the Java.
I have tried to intercept it in the hibernate.reveng.xml file but it doesn't seem to work.

Any help would be appreciated!

Hibernate version:
3.0.5

Name and version of the database you are using:
DB2 8.1


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 01, 2005 3:14 pm 
Senior
Senior

Joined: Tue Jan 11, 2005 5:03 pm
Posts: 137
Location: Montreal, Quebec
Hi,

I have got the same problem. The way I have resolve the problem was to find and replace Character to java.lang.String.

The tools is still in alpha release.

Etienne.


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.