public class IngresPkGenerator extends OraclePkGenerator {
@Override
protected long longPkFromDatabase(DataNode node, DbEntity entity) throws Exception {
DbKeyGenerator pkGenerator = entity.getPrimaryKeyGenerator();
String pkGeneratingSequenceName;
if (pkGenerator != null
&& DbKeyGenerator.ORACLE_TYPE.equals(pkGenerator.getGeneratorType())
&& pkGenerator.getGeneratorName() != null)
pkGeneratingSequenceName = pkGenerator.getGeneratorName();
else
pkGeneratingSequenceName = sequenceName(entity);
Connection con = node.getDataSource().getConnection();
try {