This content has been marked as final.
Show 3 replies
-
1. Re: hibernateexception: wrong column type in entity bean
waynebaylor Sep 29, 2007 3:20 PM (in response to x490812)look at @Column's columnDefinition attribute.
-
2. Re: hibernateexception: wrong column type in entity bean
x490812 Sep 29, 2007 10:42 PM (in response to x490812)"waynebaylor" wrote:
look at @Column's columnDefinition attribute.
I did look at columnDefinition, and here is what I found:
columnDefinition
public abstract String columnDefinition
(Optional) The SQL fragment that is used when generating the DDL for the column.
Defaults to the generated SQL to create a column of the inferred type.
This is only for table generation, not type mapping. I have not tried it in code, but the definition says it will not resolve the error I am getting. Any other ideas? -
3. Re: hibernateexception: wrong column type in entity bean
waynebaylor Oct 1, 2007 9:29 AM (in response to x490812)i've used the following in Oracle:
columnDefinition = "varchar2(15 char) default ''"