+1
Downloaded, tested in our system. Here are the things I had to change in our system:
* Upgraded my own DataSourceFactory implementation. Now even simpler than before.
* Switching to ServerRuntime runtime = new ServerRuntime("cayenne-mydomain.xml");. Nice!
* One of our CayenneDataObject subclasses had a custom equals(Object) method that did not check for the class type. This caused a ClassCastException during a commitChanges of some deletes. Not a problem since this was a bug in our code. Here is the stacktrace:
java.lang.ClassCastException: data.Y cannot be cast to data.X
at data.X.equals(X.java:144)
at java.util.ArrayList.remove(ArrayList.java:423)
at org.apache.cayenne.DataChannelSyncCallbackAction.nodeRemoved(DataChannelSyncCallbackAction.java:122)
at org.apache.cayenne.graph.NodeDeleteOperation.apply(NodeDeleteOperation.java:37)
at org.apache.cayenne.graph.CompoundDiff.apply(CompoundDiff.java:91)
at org.apache.cayenne.access.ObjectStoreGraphDiff.apply(ObjectStoreGraphDiff.java:134)
at org.apache.cayenne.DataChannelSyncCallbackAction.<init>(DataChannelSyncCallbackAction.java:74)
at org.apache.cayenne.DataChannelSyncCallbackAction$FlushCallbackAction.<init>(DataChannelSyncCallbackAction.java:173)
at org.apache.cayenne.DataChannelSyncCallbackAction.getCallbackAction(DataChannelSyncCallbackAction.java:51)
at org.apache.cayenne.access.DataDomain.onSync(DataDomain.java:749)
at org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:850)
at org.apache.cayenne.access.DataContext.commitChanges(DataContext.java:789)
Regards,
- Tore.
On 17. nov. 2010, at 20.21, Andrus Adamchik wrote:
> http://people.apache.org/~aadamchik/release/3.1M1/
>
This archive was generated by hypermail 2.0.0 : Wed Nov 24 2010 - 10:35:10 UTC