Sun Java System Application Server 9.1 Update 1-9.1 Update 2 Release Notes

GenerationType.IDENTITY and DataDirect Driver with SyBase (Issue Tracker 2431)


An attempt to insert an entity that uses GenerationType.IDENTITY fails when the DataDirect driver is used with SyBase. The attempt fails because the DataDirect driver creates a stored procedure for every parameterized prepared statement.


In the domain.xml file, set the property PrepareMethod=direct on the corresponding data source.