Zasah presne do cerneho!
S tim flush() to skutecne vyvola vyjimku uz v ramci SB metody.
A obsluhou exception na urovni SB jsem ziskal vycerpavajici informace:
Vyjimka v update()
javax.persistence.PersistenceException->org.hibernate.exception.DataException:
Could not execute JDBC batch update
org.hibernate.exception.DataException->Could not execute JDBC batch
update org.postgresql.jdbc2.PBatchUpdateException->Batch entry 0 update
WORKBOOK_RECORD set name= was aborted. Call getNextException() to see
the cause. SQL: 0 Batch entry 0 update WORKBOOK_RECORD set name= was
aborted. Call getNextException() to see the cause.
SQL-> 0 ERROR: value too long for type character varying(50)
Diky moc obema.
Leos
Milan Kratochvíl napsal(a):
Podobny problem jsem resil, bude zrejme skryty v praci s transakcemi.