Hibernate to refresh table schema

I am using hibernate 3. *. I want to update the length of a single column table from 255 to 512. The table already has data. I tried "hbm2ddl.auto = update", but I give me an error: ERROR JDBCExceptionReporter: String or binary data will be truncated. May 12, 2011 19: 49: 37,265 WARN DefaultMetricsRepository: error closing session Hibernate org.hibernate.PropertyValueException: not-null property refers to null or transient:

+2
source share
1 answer

Alas, sleep mode cannot change columns. I would also like it to be possible, but it is not. Therefore, you will have to manually change it.

, -, , ALTER.

+4

All Articles