### Question:
EntityIdGenerator implements IdGenerator<IdPojo> { @Override public String generate(IdPojo object) { Class<? extends IdPojo> entityClass = object.getClass(); String code = null; if (classCodeMapping.containsKey(entityClass)) { code = classCodeMapping.get(entityClass); } else { String simpleEntityName = entityClass.getSimpleName(); String bizName = StringUtils.substringBefore(simpleEntityName, "Entity"); code = camelToShort(bizName, MAX_CODE_LEN); } return IdUtils.makeID(code); }  @Override String generate(IdPojo object); static final int MIN_CODE_LEN; static final int MAX_CODE_LEN; }### Answer:
@Test public void testMakeUUIDByObjectAndServerId() { EntityIdGenerator entityIdGenerator = new EntityIdGenerator(); String id = entityIdGenerator.generate(new AaaaBbbbCcccDdddEeeeEntity()); System.out.println(id); id = entityIdGenerator.generate(new AaaaBbbbCcccDdddEntity()); System.out.println(id); id = entityIdGenerator.generate(new AaaaBbbbCcccEntity()); System.out.println(id); id = entityIdGenerator.generate(new AaaaBbbbEntity()); System.out.println(id); id = entityIdGenerator.generate(new AaaaEntity()); System.out.println(id); id = entityIdGenerator.generate(new AaaaEntity()); System.out.println(id); id = entityIdGenerator.generate(new AEntity()); System.out.println(id); }