Fix identity select statement caching
This commit is contained in:
parent
e3f1c2741d
commit
85a96de131
|
@ -833,7 +833,7 @@ public abstract class AbstractEntityPersister
|
|||
}
|
||||
|
||||
private String getIdentitySelectString(Dialect dialect) {
|
||||
if ( dialect.getIdentityColumnSupport().supportsInsertSelectIdentity() ) {
|
||||
try {
|
||||
return dialect.getIdentityColumnSupport()
|
||||
.getIdentitySelectString(
|
||||
getTableName(0),
|
||||
|
@ -841,7 +841,7 @@ public abstract class AbstractEntityPersister
|
|||
( (BasicType<?>) getIdentifierType() ).getJdbcType().getDdlTypeCode()
|
||||
);
|
||||
}
|
||||
else {
|
||||
catch (MappingException ex) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue