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 google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to