[ http://issues.apache.org/jira/browse/GRFT-54?page=all ]
Christophe Lombart updated GRFT-54:
-----------------------------------
Component: JCR-Mapping
Fix Version: 1.0-a1-dev
Version: 1.0-a1-dev
> Add more flexibility in the mapping
> -----------------------------------
>
> Key: GRFT-54
> URL: http://issues.apache.org/jira/browse/GRFT-54
> Project: Graffito
> Type: Improvement
> Components: JCR-Mapping
> Versions: 1.0-a1-dev
> Reporter: Christophe Lombart
> Fix For: 1.0-a1-dev
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira