Hi.

Is there any possibility to mark field as serialized if it has as type
certain interface?
I now stuck with it.

I've got @PersistentCapable class:

<code>
@PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable = "true")
public class ReportTemplate {

        /* Type of report tempate. Enum value. */
        @Persistent
        private TYPE type;

        /* Content type of file. */
        @Persistent
        private String contentType;

        /* Serializable document. */
        @Persistent(serialized="true")
        private TemplateDocument document;

        /* Constructors, methods go here. */

}
</code>

TemplateDocument is just interface that extends Serializable
interface. And, I've got some implementations of this interface. When,
I'm trying to save new report with initialized document field, jdo
exception is threw:

javax.jdo.JDOUserException: Field "ReportTemplate.document" is
declared as a reference type (interface/Object) but no implementation
classes of "TemplateDocument" have been found!

So, what does it mean? I can't use interface in this situation or
what?

Another question: why jdo annotation @serialized doesn't work? If I
mark field as @serialized without other annotation, it doesn't stored
at data store anymore.

Looking forward to your reply.
Best regards, Alexander.

--

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.


Reply via email to