On 13 Oct 2014, at 16:21, Michael Marth <mma...@adobe.com> wrote:

>> JCR vs RDBMS
>> I come from the RDBMS world and I am pretty new to JCR so I apologize if 
>> these are dumb questions:
>> 
>> *         So far, I have manipulated the JCR API (node, properties, events, 
>> ...) and was able to cover my basic use cases.
>> 
>> But, in a real application, I need to have OO modelisation and, therefore, 
>> at some point, have a way to map my business model to JCR nodes (something 
>> like an ORM).
>> 
>> I found Jackrabbit 
>> OCM<http://jackrabbit.apache.org/5-with-jackrabbit-ocm.html> but nothing in 
>> Oak.
>> 
>> Is there something in the pipe  ?
> 
> The typical ORM usage where RDB columns are auto-mapped onto Java objects has 
> shown to be less useful (or needed) in JCR. Hence, I believe all OCM projects 
> have not been advanced much lately.
> For many (even large scale applications) it is totally fine to work on JCR’s 
> API directly. In cases, where more complex node structures are needed to 
> model a business entity you can create that object as a POJO, which in turn 
> uses JCR (without having to add the complexity of auto-mapping properties).

In PHPCR (which is a port of JCR to PHP), we have found that the ODM (APi 
inspired by Hibernate) has proven very popular. That being said, there were a 
lot of tricky topics to solve (and still a few up in the air) to adapt things. 
Especially children collections are tricky to map. We also added native support 
for i18n into the ODM.

http://doctrine-phpcr-odm.readthedocs.org/en/latest/reference/introduction.html

regards,
Lukas Kahwe Smith
sm...@pooteeweet.org



Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to