Wednesday, January 26, 2011

Re: RequestFactory can not support embedded class and owned 1-to-many in one Entity

Hi David,
Yes, i am trying request like
"findUrlMd5Req.with("pTagSet", "pTagOwnedSet").fire", where pTagSet
and pTagOwnedSet are defined in an entity class.
"
@Persistent (defaultFetchGroup="true")
@Embedded
private PTag pTagSet;
..

@Persistent(mappedBy="bookPTag", defaultFetchGroup="true")
@Element(dependent = "true")
private List<PTagOwned> pTagOwnedSet= new ArrayList<PTagOwned>();

PTagProxy is defined as
@ProxyFor(value=PTag.class)
public interface PTagProxy extends ValueProxy {
..

PTagOwnedProxy is defined as
@ProxyFor(value=PTagOwned.class, locator=locator-for-pTagOwned)
public interface PTagOwnedProxy extends EntityProxy {
"

As I said, if containing only embedded class or owned 1-to-many class,
it works. Combined two type of classes above will return only owned 1-
to-many proxy.

Is it a limitation on the implementation? How to debug in this case?
Thanks,

On Jan 26, 10:28 pm, David Chandler <drfibona...@google.com> wrote:
> Are you putting both property names in .with(), as in
> .with("embeddedProperty","ownedOneToManyProperty")?
>
> Both are required.
>
> /dmc
>
>
>
>
>
>
>
>
>
> On Wed, Jan 26, 2011 at 9:23 AM, QkQk <michael....@gmail.com> wrote:
> > Hi,
> >  I have one question about RF proxy support. I am using gwt2.1.1 and
> > jdo in appEngine 1.4.0. I found out  if a Entity class contains both
> > owned 1-to-many subclass and embedded class. Then, RF only return
> > owned 1-to-many proxy. If it contains only embedded class or owned
> > class, then RF works fine.
>
> >  Is it a limitation of current release of RF or any other reason?
> > Thanks,
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> David Chandler
> Developer Programs Engineer, Google Web Toolkit
> w:http://code.google.com/
> b:http://googlewebtoolkit.blogspot.com/
> t: @googledevtools

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment