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 <
[email protected]> 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 <[email protected]>
>
>>
>> @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 [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-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 [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-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 [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-web-toolkit?hl=en.

Reply via email to