You can change the sleep dialogs,
in hibernate.cfg
<property name="hibernate.dialect">com.YourProject.YourDialect</property>
in your dialect class you need to enter the syntax you want to execute.
dialect example for DB2
public class DB2390Dialect extends DB2Dialect { public String getIdentitySelectString() { return "select identity_val_local() from sysibm.sysdummy1"; }... }
Hope this helps
source share