Beginner |
|
Joined: Tue Aug 26, 2003 9:50 am Posts: 34 Location: Weiden Opf. / Germany
|
Hi folks!
With MS SQLServer and the JSQLConnect driver (not sure about other db/driver combos) if a string property of an entity has been set with a value longer than the field in the database, it can not be saved.
I'd would like to truncate the String to the length of the db column. Unfortunately i couldn't find any way in hibernate to access the metadata of a db table.
Is there any possibility to retrieve the length the db column mapped to a property?
Any help would be appreciated!
|
|