I have a simple Class with getters and setters, and : @PersistenceCapable(identityType= IdentityType.APPLICATION, detachable = "true" ) class MyInnerClass implements IsSerializable {
@Persistent(defaultFetchGroup = "true") private MyClass myClass; @PrimaryKey @Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true") @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) String Id; } @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true" ) public class MyClass implements IsSerializable { @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @PrimaryKey @Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true") String Id; @Persistent(mappedBy = "myClass") List<MyInnerClass> listMyInnerClass; } 2011/10/10 Brandon Donnelson <branflake2...@gmail.com> > What type of owned List do you have? > > Have a good day, > Brandon Donnelson > c.gawkat.com > > > On Mon, Oct 10, 2011 at 1:30 PM, Bruno Sandivilli < > bruno.sandivi...@gmail.com> wrote: > >> Thanks for the help from you guys! >> But, yes im using IsSEriazeble. I've changed my code to detachable in both >> classes, but, when i call: >> >> if(listMyClass.size() > 0) >> { >> for (MyClass myClass : listMyClass) { >> return (pm.detachCopy(myClass.getMyInnerClassList())); >> } >> } >> return null; >> >> >> gives me : The class "org.datanucleus.sco.backed.List" is not persistable. >> This means that it either hasnt been enhanced, or that the enhanced version >> of the file is not in the CLASSPATH (or is hidden by an unenhanced version), >> or the Meta-Data/annotations for the class are not found. >> >> >> debugging this, i've reached this : assertClassPersistable in the class >> ObjectMAnagerImpl. This function : >> >> public void assertClassPersistable(Class cls) >> { >> if (cls != null && >> !getOMFContext().getApiAdapter().isPersistable(cls) && !cls.isInterface()) >> { >> throw new ClassNotPersistableException(cls.getName()); >> } >> if (!hasPersistenceInformationForClass(cls)) >> { >> throw new NoPersistenceInformationException(cls.getName()); >> } >> } >> >> >> 2011/10/9 Brandon Donnelson <branflake2...@gmail.com> >> >>> >>> @PersistenceCapable(detachable="true") >>> >>> >>> detached = pm.detachCopy(employee); >>> >>> >>> Those will create a java.util List object. That should fix it. >>> >>> Brandon >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Google Web Toolkit" group. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msg/google-web-toolkit/-/ikusuY9VjW0J. >>> >>> To post to this group, send email to google-web-toolkit@googlegroups.com >>> . >>> To unsubscribe from this group, send email to >>> google-web-toolkit+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/google-web-toolkit?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to google-web-toolkit@googlegroups.com. >> To unsubscribe from this group, send email to >> google-web-toolkit+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.