Sun GlassFish Communications Server 1.5 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.