I am not able to load child institutions after being on Google App Engine. I'm sure they are saving because I can see them in datastore. For example if I have the following two entities. Public category Parental Serializable {@Id @GeneratedValue (strategy = GenerationType.IDENTITY) @ extension (vendor name = "dayanucleus", key = "ge.encoded-pk", value = "True") Private string key; @OneToMany (cascade = CascadeType.ALL) Private listing & lt; Child & gt; Children = New Arrestists & lt; Child & gt; (); // Gestors and Setsers} Public Class Child Serializable {@Id @GeneratedValue (strategy = GenerationType.IDENTITY) @ Extension (vendor name = "datanucleus", key = "gaencodeed-pk", value = "true") Private string key ; The name of the private string; @ManyToOne Personal Parents; // getters and setters}
I can cure parents and a child by using the following:
parents = new mothers -husband (); Child = new baby (); Child.setName ("Child Object"); . Parent.getChildren () add (child); Em.persist (parent);
However, when I try to load my parents and then try to reach the children (I know that GAE sluggish load) I have not received hair records.
Parents have already been successfully loaded by parent.getChildren.size (); // It returns 0
I looked at the tutorial after the tutorial and nothing has worked yet. I am using version 1.3.3.1 of SDK. I have seen problems on various blogs and even app engine forums, but the answer is always related to JDO. Am I doing something wrong or is anyone else having this problem and resolved it for JPA?
Close the unit manager and open the child's property, it is not empty, the lazy child only Will find out when unit manager is open.
Comments
Post a Comment