public DefaultIDGenerator getDefaultIDGenerator(){
Dto dto = new BaseDto();
dto.put("fieldname", getFieldname());
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);