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.
|
|