Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Sometime, it should be interesting to map to a different jcr node structure.
Here is an example, for a class "File", we can have :
public class File { private String mimeType; private String encoding; private InputStream data; private Calendar lastModified; // Add getters/setters }
and in terms of JCR structure, we can have :
nt:file jcr:content jcr:mimeType jcr:encoding jcr:data jcr:lastModified
So, the jcr:content node is an extra node to specify in the mapping file.