It seems that Sybase doesn't supports "on cascade delete" . Some tests under BulkManipulationTest fails due to this.
A possible solution is to override supportsCascadeDelete in SybaseDialect to return "false".
Hibernate from Branch_3_2_4_SP1_CP with Sybase 15.
Actually, the tests are failing due to another issue. But I guess that this is indeed an issue:
13:18:02,806 DEBUG SchemaExport:303 - alter table nonleafsubclass add constraint FK2C4413E3DED31D14 foreign key (sid) references rootclass on delete cascade
13:18:02,954 ERROR SchemaExport:274 - Unsuccessful: alter table nonleafsubclass add constraint FK2C4413E3DED31D14 foreign key (sid) references rootclass on delete cascade
13:18:02,954 ERROR SchemaExport:275 - Incorrect syntax near the keyword 'on'.
Since SQL Server supports cascade-delete and SQLServerDialect extends SybaseDialect, SQLServerDialect.supportsCascadeDelete() was added to return true.
Fixed in Branch_3_2, Branch_3_2_4_SP1_CP, Branch_3_3, and trunk.
Bulk closing stale resolved issues