-->
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 string to long instead of varchar2
PostPosted: Thu Dec 16, 2004 12:17 pm 
Regular
Regular

Joined: Tue Nov 23, 2004 7:42 am
Posts: 82
Location: London, England
Hibernate version:
2.1.7

I'm testing our application with Oracle. I have an issue where Hibernate is mapping strings to the Oracle 'long' datatype instead of varchar2. Anyone know why this is and how I can fix it? For those who don't know, you can only have one long per table, however, I'm not using longs at all.

eg.

/**
* @return Returns the description.
*
* @hibernate.property column = "description"
* type = "string"
* length = "255"
* not-null = "true"
*/
public String getDescription() {
return description;
}

gives you 'description long not null' in the table definition.


Top
 Profile  
 
 Post subject: Wrong dialect
PostPosted: Fri Dec 17, 2004 6:15 am 
Regular
Regular

Joined: Tue Nov 23, 2004 7:42 am
Posts: 82
Location: London, England
Solving my own problem again but it seems I was using the incorrect dialect: OracleDialect as opposed to Oracle9Dialect.


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.