/**
* This is called whenever a new entity class is encountered.
*
*/
protected void processEntityClass(Class<?> entityClass) {
InitEntity initEntity = entityClass.getAnnotation(InitEntity.class);
String key = null;
String alias = null;
if (initEntity != null) {
key = StringUtils.isEmpty(initEntity.key()) ? findEntityKeys(entityClass) : initEntity.key();
alias = initEntity.alias();
}
InitEntityMetaData initEntityMetaData = new InitEntityMetaData(alias, entityClass, key);
factory.addInitEntity(initEntityMetaData);
addInitProperties(entityClass, initEntityMetaData);
}