Friederich Christophe created CAY-1922:
------------------------------------------

             Summary: CreateIfNoSchemaStrategy generates all table of all 
DataNode
                 Key: CAY-1922
                 URL: https://issues.apache.org/jira/browse/CAY-1922
             Project: Cayenne
          Issue Type: Bug
    Affects Versions: 3.2M1
            Reporter: Friederich Christophe


processSchemaUpdate method search all DbEntity with 
dataNode.getEntityResolver().getDbEntities(), but getEntityResolver() contains 
all DbEntity from all DataNode.

I resolve the problem replacing this line with:
Set<DbEntity> entities = Sets.newHashSet();
Collection<DataMap> map = dataNode.getDataMaps();
for (DataMap dataMap : map) {
      entities.addAll(dataMap.getDbEntities());
}




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to