Re: ClassCastException: PersistentObjectSet as PersistentObject

2011-09-26 Thread Andrus Adamchik
Yes please open a bug report with a stack trace. Andrus On Sep 27, 2011, at 12:41 AM, Bruno René Santos wrote: > Hello all, > > I was trying to use java.util.Set as the base of my relationships as my GUI > framework uses it a lot. The problem was that on this piece of code: > > // TODO: Andrus

Re: [ANN] Cayenne 3.1M3 release

2011-09-26 Thread Malcolm Edgar
Great news guys, well done. Do you have a view as to when 3.1 will go into RC phase? regards Malcolm Edgar On Mon, Sep 26, 2011 at 5:19 PM, Andrus Adamchik wrote: > We are glad to announce 3.1M3 release of Cayenne. This is an important > milestone on our way to Beta. In fact there is a good ch

ClassCastException: PersistentObjectSet as PersistentObject

2011-09-26 Thread Bruno René Santos
Hello all, I was trying to use java.util.Set as the base of my relationships as my GUI framework uses it a lot. The problem was that on this piece of code: // TODO: Andrus 1/31/2006 - IncrementalFaultList is not properly // transferred between contexts

Re: Switching data nodes at runtime

2011-09-26 Thread John Huss
Thanks for help. To document this for future users, the DI approach then looks something like this: import org.apache.cayenne.configuration.DefaultRuntimeProperties; import org.apache.cayenne.di.Binder; import org.apache.cayenne.di.Module; public class AppModule implements Module { public void

Re: Switching data nodes at runtime

2011-09-26 Thread Andrus Adamchik
This is a good recipe for 3.0. In 3.1 you are allowed to merge multiple projects when creating a ServerRuntime, so you can merge multiple mappings to get the behavior that you need. However... Are you sure you want to switch DataNodes? DataNodes by themselves don't have many configuration proper

Re: Switching data nodes at runtime

2011-09-26 Thread Michael Gentry
Hi John, This is completely untested, but try something like: Configuration configuration = Configuration.getSharedConfiguration(); DataDomain dataDomain = configuration.getDomain(); DataMap dataMap = dataDomain.getMap("my map name"); DataNode oldNode = dataDomain.getNode("old node name); Dat

Switching data nodes at runtime

2011-09-26 Thread John Huss
At runtime how do I switch my model to use a different data node that was previously defined in the in model? I'm using trunk. Thanks, John

Re: Complex RelationShip in Modeler vs in Code

2011-09-26 Thread Michael Gentry
Probably. I'll try to remember to do that at home and attach my test project as a demo/example of the issue. On Mon, Sep 26, 2011 at 6:10 AM, Bruno René Santos wrote: > It seems like a bug yes... Do you think A ticket should be created? > > Thanx > Bruno > > No dia 24 de Set de 2011 15:36, "Mich

Re: Complex RelationShip in Modeler vs in Code

2011-09-26 Thread Bruno René Santos
It seems like a bug yes... Do you think A ticket should be created? Thanx Bruno No dia 24 de Set de 2011 15:36, "Michael Gentry" escreveu: > Hi Bruno, > > I just wrote a small test-case which used: > > Source -> Middle ->> Target > > Using source.getMiddle().getTargets() succeeds, but using > so

RE: Recursive FK constraints in MySql

2011-09-26 Thread Durchholz, Joachim
> I want to delete a row from a particular table. Unfortunately > the table in question has a FK constraint to another table, > which in turn has a FK constraint back to the table in question. > Even the latest version of MySql (I tried 5.5) does constraint > checking on a per-statement rather than

[ANN] Cayenne 3.1M3 release

2011-09-26 Thread Andrus Adamchik
We are glad to announce 3.1M3 release of Cayenne. This is an important milestone on our way to Beta. In fact there is a good chance that the next release will be announced as Beta. Upgrade to M3 is strongly recommended to all 3.1 users, as it contains some critical bug fixes. The highlights of t