Hello all
I am currently creating a POC using jackrabbit / JCRom. Everything works fine (I can write, read from my repository. I can also export data into/from an XML file).
The problem I am facing is that a List<MyPojoExtendsJcrFile> mylist in my "Dokument" is not mapped at all, hence it always null.
Generally the "Files" attribute is automatically mapped by JCRom when WDokument" is mapped.
Here is a sample bit of my exported xml:
<?xml version="1.0" encoding="UTF-8"?>
<DocumentStore jcr:primaryType="nt:unstructured" xmlns:rep="internal" xmlns:sv="http://www.jcp.org/jcr/sv/1.0"
xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions"
xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:nt="http://www.jcp.org/jcr/nt/1.0">
<Dokument jcr:primaryType="nt:unstructured" creationTimestamp="2018-04-18T12:21:16.409+02:00"
creationUserId="rb7m" dokumentName="Sample-pdf_bc8a85cc-e315-4d53-a404-baa5d6f3001a"
dokumentNr="5447219853085919571" dossierNr="6317749218115667194" id="5235969427766659183">
<Files jcr:primaryType="nt:unstructured">
<fileRef jcr:primaryType="nt:unstructured" jcr:uuid="4ca5c22e-8183-41bb-8866-176fa3aad4a7">
<jcr:content jcr:primaryType="nt:resource" jcr:uuid="a2a42ac4-371d-408e-aec8-e508710a4ea0" jcr:data=""
jcr:encoding="UTF-8" jcr:lastModified="2018-04-16T19:48:19.039+02:00"
jcr:lastModifiedBy="admin" jcr:mimeType="image/jpeg"/>
</fileRef>
<fileRef jcr:primaryType="nt:unstructured" jcr:uuid="80b803ec-f8e8-441d-8de9-459c22203064">
<jcr:content jcr:primaryType="nt:resource" jcr:uuid="3289a737-9fe7-41d2-be2a-2afb433923af" jcr:data=""
jcr:encoding="UTF-8" jcr:lastModified="2018-04-16T19:48:19.039+02:00"
jcr:lastModifiedBy="admin" jcr:mimeType="image/jpeg"/>
</fileRef>
</Files>
</Dokument>
.........
</DocumentStore>
Help would be great!!
thanks Stephan