dto = (BaseDto)g4Dao.queryForObject("IdGenerator.getEaSequenceByFieldName", dto);
DefaultIDGenerator idGenerator = new DefaultIDGenerator();
DefaultSequenceFormater sequenceFormater = new DefaultSequenceFormater();
sequenceFormater.setPattern(dto.getAsString("pattern"));
DefaultSequenceGenerator sequenceGenerator = new DefaultSequenceGenerator(getFieldname());
SequenceStorer sequenceStorer = new DBSequenceStorer();
sequenceGenerator.setSequenceStorer(sequenceStorer);
sequenceGenerator.setCache(catche);
idGenerator.setSequenceFormater(sequenceFormater);
idGenerator.setSequenceGenerator(sequenceGenerator);
return idGenerator;