Thanks Fred,
I saw this b4 but hesitated to try it. Will try it now.

Thanks

On Tue, May 12, 2009 at 1:59 PM, Fred Sauer <[email protected]> wrote:

> 2009/5/12 Miguel Méndez <[email protected]>
>
>> I must admit that I've not personally researched it.  I think that it has
>> been discussed on the appengine user group however.  You may also want to
>> search this group.
>> The problem, as I understand it, is that enhancement adds fields to the
>> runtime type.  But, GWT-RPC works off of the static (pre-enhancement) view
>> of the type which is why you get the errors.  I'm not sure what the best
>> work around is.  I do know Ray Cromwell has done some looking into it.
>>
>
> Thanks, Miguel.
>
> @Pavel I think a good starting point is here:
>
> http://timepedia.blogspot.com/2009/04/google-appengine-and-gwt-now-marriage.html
>
> A key bit is this:
>  @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable =
> "false")
>
> Fred
>
>
>>
>>
>> On Tue, May 12, 2009 at 1:34 PM, Pavel Byles <[email protected]>wrote:
>>
>>> Miguel,
>>> YES!
>>> that's it. As soon as I comment out the @PersistenceCapable it works!
>>>
>>> Now I know there are issues w/ GWT and enhanced classes, but exactly how
>>> am I supposed to persist data w/o having that annotation?
>>>
>>> 2009/5/12 Miguel Méndez <[email protected]>
>>>
>>>> What if you try to have it not be persistable (comment out the
>>>> persistence annotations, rebuild, and return a dummy one that was not
>>>> instantiated by the ORM code)?  I wonder if this is the ORM and GWT-RPC
>>>> incompatibility.
>>>>
>>>>
>>>> On Tue, May 12, 2009 at 1:00 PM, Pavel Byles <[email protected]>wrote:
>>>>
>>>>> I suspect it has something to do with the object I am returning.
>>>>>
>>>>> When I use the same service to return a String or a simple class that
>>>>> contains a String everything works fine.
>>>>>
>>>>> But when I try to return instances of Country then I get the error.
>>>>>
>>>>> Any ideas why this happens?
>>>>> Here is the Country class:
>>>>>
>>>>> import java.io.Serializable;
>>>>>
>>>>> import javax.jdo.annotations.IdentityType;
>>>>> import javax.jdo.annotations.PersistenceCapable;
>>>>> import javax.jdo.annotations.Persistent;
>>>>> import javax.jdo.annotations.PrimaryKey;
>>>>>
>>>>> @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable
>>>>> = "true")
>>>>> public class Country implements Serializable {
>>>>>   private static final long serialVersionUID = -1L;
>>>>>
>>>>>   @PrimaryKey
>>>>>   @Persistent
>>>>>   private String name;
>>>>>
>>>>>   @Persistent
>>>>>   private float latitude;
>>>>>
>>>>>   @Persistent
>>>>>   private float longitude;
>>>>>
>>>>>   public Country () {
>>>>>
>>>>>   }
>>>>>
>>>>>   public Country (String name, float latitude, float longitude) {
>>>>>     this.name = name;
>>>>>     this.latitude = latitude;
>>>>>     this.longitude = longitude;
>>>>>   }
>>>>>
>>>>>   public String getName() {
>>>>>     return name;
>>>>>   }
>>>>>
>>>>>   public void setName(String name) {
>>>>>     this.name = name;
>>>>>   }
>>>>>
>>>>>   public float getLatitude() {
>>>>>     return latitude;
>>>>>   }
>>>>>
>>>>>   public float getLongitude() {
>>>>>     return longitude;
>>>>>   }
>>>>>
>>>>>   public void setLatitude(float latitude) {
>>>>>     this.latitude = latitude;
>>>>>   }
>>>>>
>>>>>   public void setLongtiude(float longitude) {
>>>>>     this.longitude = longitude;
>>>>>   }
>>>>> }
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Miguel
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> -Pav
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Miguel
>>
>>
>>
>
>
> --
> Fred Sauer
> Developer Advocate
> Google Inc. 1600 Amphitheatre Parkway
> Mountain View, CA 94043
> [email protected]
>
>
> >
>


-- 
-Pav

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

Reply via email to