there is company class model.
public class Company implements ICompany {
private static final long serialVersionUID = 1L;
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
@Persistent
private String name;
@Persistent
private Category catId;
}
this is my category class model
public class Category extends BaseObject implements ICategory {
private static final long serialVersionUID = 1L;
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
@Persistent
private String name;
@Persistent
private Key parent;
}
catId of company is foreign key.
I want to retrieve company info with category details in single object
how implement in jdo . because in hibernate it joined automatically
and get details in single object.
I am trying to get the details of both in single object , but only
company info. is coming and category id is coming , not coming
category full details .
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" 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-java?hl=en
-~----------~----~----~----~------~----~------~--~---