cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Friederich Christophe (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-1922) CreateIfNoSchemaStrategy generates all table of all DataNode
Date Mon, 24 Mar 2014 09:30:43 GMT
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)

Mime
View raw message