Long « MySQL « JPA Q&A





1. Properly handling long data in Hibernate    stackoverflow.com

I am getting a data too large problem in hibernate. that is-

Caused by: java.sql.BatchUpdateException: Data truncation: Data too long for column 'FBZipLoc' at row 1 ...

2. Problem regarding type conversion between BigInt and Integer/Long in JPA/Hinbernate/MySQL    coderanch.com

Hello rangers, I'm using JPA with Hibernate as a persistence provider together with a MySQL 5.x database for a standalone Java project. So far everything works fine except for one small problem which obviously has to do with type conversion. I'm experimenting for hours now trying to figure out what is wrong here but I'm completely stuck with this. For this ...