Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Cannot Reproduce
-
1.5.4
-
None
Description
In hibernate, we have
<property name="shipmentStatus" column="shipment_status"> |
<type name="org.hibernate.type.EnumType"> |
<param name="enumClass">com.packloop.core.common.Constants$ShipmentStatus</param> |
</type>
|
</property>
|
If we use mariadb JDBC, we will get SQL ERROR:
Incorrect integer value: 'IN_TRANSIT' for column 'shipment_status' at row 1
Because, we set int for column shipment_status. mariadb JDBC didn't use IN_TRANSIT' ordinal as value.
If we switch JDBC to Mysql Connector/J, the SQL will insert ordinal value to database.