You cannot pass JDO object to the client. All object that get passed to the
client end up being Java Script object. There a significant limitations on
what can go. I wrote my app before the latest framework pieces provided by
Google. I need two objects. One for the database and one to pass to the
client. This sucks as you need to move the data between the object. Try out
the new framework pieces instead
http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html


On Wed, Mar 2, 2011 at 11:15 PM, andy <[email protected]> wrote:

> I want to pass the object the of employee to client side can it
> possible? i am getting some error.
> here is my code
>
> Employee Class:
> @PersistenceCapable(identityType =
> IdentityType.APPLICATION,detachable="true")
> public class Employee implements Serializable {
>        private static final long serialVersionUID = 1L;
>
>        @PrimaryKey
>        @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>        @Extension(vendorName="datanucleus", key="gae.encoded-pk",
>        value="true")
>        private String id;
>        @Persistent
>        private String ename;
>
>        @Persistent
>        private String designation;
>
>        @Persistent(mappedBy="parentEmployee",defaultFetchGroup="true")
>        private List<Leave> leaves;
>
>        @Persistent
>        @Embedded
>        private EmployeeManager employeeManager;
> }
> Leave class:
> @PersistenceCapable(identityType =
> IdentityType.APPLICATION,detachable="true")
> public class Leave implements Serializable{
>
>        private static final long serialVersionUID = 1L;
>
>        @PrimaryKey
>        @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>        @Extension(vendorName="datanucleus", key="gae.encoded-pk",
>        value="true")
>        private String leaveid;
>
>        @Persistent
>        private String reason;
>
>        @Persistent
>        private String status;
>
>        //@OneToMany(fetch=FetchType.EAGER)
>        public Employee parentEmployee;
> }
> but i m=am getting the all information at server side
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" 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-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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-appengine?hl=en.

Reply via email to