cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CAY-1988) ServerRuntimeBuilder: synthetic DataNode does not have domain's DataMaps linked
Date Sun, 22 Feb 2015 12:37:11 GMT

     [ https://issues.apache.org/jira/browse/CAY-1988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrus Adamchik closed CAY-1988.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 4.0.M3

> ServerRuntimeBuilder: synthetic DataNode does not have domain's DataMaps linked
> -------------------------------------------------------------------------------
>
>                 Key: CAY-1988
>                 URL: https://issues.apache.org/jira/browse/CAY-1988
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 4.0.M2
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>            Priority: Minor
>             Fix For: 4.0.M3
>
>
> A project consisting of a single DataMap with no mapped DataNodes is loaded as follows:
> return new ServerRuntimeBuilder()
> 				.addModule(binder -> binder.bind(SchemaUpdateStrategy.class).to(CreateIfNoSchemaStrategy.class))
> 				.jdbcDriver(driver).url(url).addConfig("cayenne-project.xml").build();
> When CreateIfNoSchemaStrategy is invoked on startup, it generates exactly zero tables.
When digging deeper I noticed this is caused by SyntheticNodeDataDomainProvider failing tolink
any DataMaps to the "synthetic" DataNode from the parent domain. So CreateIfNoSchemaStrategy
has nothing to work with.
> The workaround is probably to create a dummy DataNode in the project. But it is not very
clean.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message