@Override
  protected void secondPassCompile() throws MappingException {
    super.secondPassCompile();
    configSchema();
    Set<String> hackedEntityNames = CollectUtils.newHashSet();
    for (Map.Entry<String, PersistentClass> entry : classes.entrySet()) {
      if (!entry.getKey().equals(entry.getValue().getEntityName())) hackedEntityNames.add(entry.getKey());
    }
    for (String entityName : hackedEntityNames)
      classes.remove(entityName);
  }
@ Override protected void secondPassCompile ( ) throws MappingException { super . secondPassCompile ( ) ; configSchema ( ) ; Set < String > hackedEntityNames = CollectUtils . newHashSet ( ) ; for ( Map . Entry < String , PersistentClass > entry : classes . entrySet ( ) ) { if ( ! entry . getKey ( ) . equals ( entry . getValue ( ) . getEntityName ( ) ) ) hackedEntityNames . add ( entry . getKey ( ) ) ; } for ( String entityName : hackedEntityNames ) classes . remove ( entityName ) ; }
Update persistentclass and collection's schema.<br>
Remove duplicated persistentClass register in classes map.

@see #addClass(Class)