2018-04-25

Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Cannot get geometry object from data you send to the GEOMETRY field


Environment:

JDK 1.7.0_80
Tomcat 8.0.36
MySql 5.5.50
Spring 4.3.16.RELEASE
Hibernate 4.3.11.Final

Hibernate Spatial 4.3


Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Cannot get geometry object from data you send to the GEOMETRY field

Getting fail to store Polygon Shape Object in Geometry Datatype with hibernate spatial API




Check column after insert:



SELECT AsText( geometry_column ) FROM table;

No comments:

Google Referrals