[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-05-03 Thread jd
Yep, many to many relationships work well. They can also be polymorhic and use inheritance with no problems. On May 3, 12:09 am, Michael Shtelma mshte...@gmail.com wrote: Hi all, I have looked at twig, I liked it a lot, but there is one issue about many to many relationships. Does Twig

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-05-03 Thread jd
On May 2, 2:40 pm, jtuchscherer jtuchsche...@gmail.com wrote: John, are you saying that Twig, Objectify, SimpleDS, Slim3 and Siena don't have this problem? I can only definitivly speak for Twig but I am certain that the others also would not suffer this problem or many many of the other

Re: [appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-05-03 Thread Michael Shtelma
Hi, do you have some sort of example or tutorial for the many to many relations ? When I have tried using them, I got really strange exception. Twig was not able to determine the key for some dependent entities...I think I was doing smth wrong... I will describe the problem in with more details

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-05-03 Thread jd
On May 4, 12:02 am, Michael Shtelma mshte...@gmail.com wrote: When I have tried using them, I got really strange exception. Twig was not able to determine the key for some dependent entities...I think I was doing smth wrong... Ah yes, when you have circular references and you use auto

Re: [appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-05-03 Thread Michael Shtelma
Thank you, yes, now I have found out this too :))) I had just to do some more experiments Twig is working great with many to many relationships, I will defenitely use it :)). Sincerely, Michael Shtelma On Tue, May 4, 2010 at 12:05 AM, jd jdpatter...@gmail.com wrote: On May 4, 12:02 am,

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-05-02 Thread jtuchscherer
Sorry to revive this old topic, but I still see this problem in 1.3.3.1 I get it in the following scenario: class Parent {} class Child { private Key id; private Parent mother; private Parent father } Error message: Child has multiple relationship fields of type Parent: father and mother.

Re: [appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-05-02 Thread Michael Shtelma
Hi all, I have looked at twig, I liked it a lot, but there is one issue about many to many relationships. Does Twig support them? Sincerely, Michael Shtelma On Sun, Mar 28, 2010 at 5:25 PM, John Patterson jdpatter...@gmail.comwrote: There are alternatives: Twig, Objectify, SimpleDS, Slim3,

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-03-28 Thread Trung
Hi GAE team, Any workarounds for this issue? Thanks On Feb 14, 8:55 am, Payam pmoghad...@gmail.com wrote: The problem is still not solved. Although you can persist an object with multiple relations of the same type. When you actually query the object, the retrieved object has duplicates

Re: [appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-03-28 Thread John Patterson
There are alternatives: Twig, Objectify, SimpleDS, Slim3, Siena. Take your pick and get your app working today. On 28 Mar 2010, at 21:47, Trung wrote: Hi GAE team, Any workarounds for this issue? Thanks On Feb 14, 8:55 am, Payam pmoghad...@gmail.com wrote: The problem is still not

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-02-15 Thread Payam
The problem is still not solved. Although you can persist an object with multiple relations of the same type. When you actually query the object, the retrieved object has duplicates for the multiple relations. As in, if I were to persist instances A, B inside C. When I query for C, both objects

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-01-26 Thread Michael Shtelma
Hi all, I am also experiencing this problem on GAE 1.3.0. Using multipleRelationsOfSameTypeAreErrors helps not in all cases, when I am trying to read such entities I get mentioned exception. Are the any solution for the 1.3.0 ? Thanks, Michael On Jan 21, 9:20 am, cowper iamco...@gmail.com

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-01-26 Thread oth
Michael, In your jdoconfig.xml file add this entry: property name=datanucleus.appengine.allowMultipleRelationsOfSameType value=true/ Thanks On Jan 26, 3:12 pm, Michael Shtelma mshte...@gmail.com wrote: Hi all, I am also experiencing this problem on GAE 1.3.0. Using

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-01-21 Thread cowper
Hi, I have a similar issue with 1.3.0 however it arises when the types are the same and not related to inheritance of any type. The work around suggested doesn't seem to work. Is the workaround valid for 1.3.0? thx, Conor On Dec 4 2009, 9:52 pm, Max Ross (Google) maxr +appeng...@google.com

Re: [appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-01-16 Thread Daniel Benamy
One more thing- I get this error the first time I hit this code after idling or starting up, but subsequent runs work ok. Dan On Sat, Jan 16, 2010 at 2:51 AM, Daniel Benamy dben...@gmail.com wrote: I think I'm hitting this check since updating to 1.2.8. I've got something like: class A {  B

Re: [appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2009-12-14 Thread Max Ross (Google)
Datastore cursors is something we hoped to support in 1.2.8 but it didn't quite make it in. There are changes in the ORM code to support it but it's not actually enabled in the datastore back-end. This should be available early next year. On Sat, Dec 12, 2009 at 7:46 AM, David Fuelling

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2009-12-12 Thread David Fuelling
Thanks Max, that fixed my problem with the inheritence. One other question: What version of the ORM code is currently included in the 1.2.8 SDK? I only ask because I noticed that the release notes for ORM VERSION 1.0.4 Final includes Support datastore cursors, and am wondering if that is

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2009-12-10 Thread David Fuelling
Hmm...looks like I'm not using @MappedSuperclass in my abstract parent class. I'll give that a try and see if it fixes things. On Dec 9, 8:27 pm, David Fuelling sappe...@gmail.com wrote: Thanks Max!  Just updated to 1.2.8 and ran into this problem.  The workaround looks good, though I think

Re: [appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2009-12-10 Thread Max Ross (Google)
I've made a backwards-compatible bug fix release candidate available at http://code.google.com/p/datanucleus-appengine/downloads/list The release contains a fix for this issue and also renames the config property to datanucleus.appengine.allowMultipleRelationsOfSameType Max On Thu, Dec 10, 2009

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2009-12-09 Thread David Fuelling
Thanks Max! Just updated to 1.2.8 and ran into this problem. The workaround looks good, though I think you specified the boolean value wrong if you want to disable this error. Should be: property name=datanucleus.appengine.multipleRelationsOfSameTypeAreErrors value=false/ In my case, the app