private void updateAssociationEntities(Package pckg) {
   for (Entity entity : pckg.getEntities()) {
     for (OneToOne oneToOne : entity.getAttributes().getOneToOne()) {
       oneToOne.setEntity(this.entityMap.get(oneToOne.getTargetEntity()));
     }
     for (ManyToOne manyToOne : entity.getAttributes().getManyToOne()) {
       manyToOne.setEntity(this.entityMap.get(manyToOne.getTargetEntity()));
     }
     for (ManyToMany manyToMany : entity.getAttributes().getManyToMany()) {
       manyToMany.setEntity(this.entityMap.get(manyToMany.getTargetEntity()));
     }
     for (OneToMany oneToMany : entity.getAttributes().getOneToMany()) {
       oneToMany.setEntity(this.entityMap.get(oneToMany.getTargetEntity()));
     }
     for (Embedded embedded : entity.getAttributes().getEmbedded()) {
       embedded.setEmbeddable(this.embeddableMap.get(embedded.getTypeName()));
     }
     entity.setParentEntity(this.entityMap.get(entity.getParentClassName()));
   }
   for (Package subPackage : pckg.getChildrenPackages()) {
     updateAssociationEntities(subPackage);
   }
 }