| OK, I see, thanks for sharing. So you can probably make it work by using a specific dialect as right now the default PostgreSQL dialect is all based on sequences. Maybe something along the lines of the following could work. You will probably need to dig a bit more to properly implement IdentityColumnSupport depending on PostgreSQL capabilities.
public class PostgreSQLIdentityDialect extends PostgreSQL95Dialect {
@Override
public IdentityColumnSupport getIdentityColumnSupport() {
return new IdentityColumnSupportImpl() {
@Override
public boolean supportsIdentityColumns() {
return true;
}
@Override
public boolean supportsInsertSelectIdentity() {
return ...;
}
@Override
public boolean hasDataTypeInIdentityColumn() {
return true;
}
@Override
public String getIdentityColumnString(int type) {
return "generated by default as identity";
}
};
}
@Override
public String getNativeIdentifierGeneratorStrategy() {
return "identity";
}
}
Please report back your progress! Thanks! |