I am using hibernate to map my classes to oracle database. But when I try to insert something ,get:
java.sql.BatchUpdateException: ORA-12899: value too large for column
I used hibernate tool to generate this table, is there anyway I can manually change the setting of the column size?
I tried to set the length=”1000″ in hbm.xml file and @Column(length=1000) in object class, but those are not working.
Thank you.
How large is your actual value? You might consider using a Lob as the max size in oracle for something like a varchar is 4000. You could use the @Lob annotation on the field/setter if you wanted to go this right.