jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos Sanchez" <car...@apache.org>
Subject Re: Annotation based implementation of jackrabbit ocm
Date Tue, 03 Jul 2007 18:22:48 GMT
On 7/3/07, Felix Meschberger <fmeschbe@gmail.com> wrote:
> Hi all,
>
> Cool !
>
> But: There is one important issue, though. Using annotations (out of the
> box) requires Java 5, while Jackrabbit is still AFAIK intended to the
> usable with Java 1.4.
>
> Thus we would have to carefully decided on whether and how to apply this
> patch to not loose 1.4 compatibility support. My understanding is, that
> we have to support 1.4 as long as it is officially supported.

this doesn't affect the rest of jackrabbit, if you want to use java
1.4 with ocm you can use the digester implementation.

>
> > We are having trouble with the collection
> > mapping as the unit test shows, in case anyone has a better
> > understanding of ocm and can figure out.
>
> I did not run the tests. Just out of my head also trying annotation
> support (but using QDox and a Maven plugin, and yes, Java annotations
> are cooler :-) ), I remember the main issues regarding node type
> management is that intermediate nodes would be required, which may not
> easily be declared.
>
> To illustrate (simplified):
>
>    <class-descriptor class="Xyz">
>      <collection-descriptor name="data" elementclass="Data"/>
>    </class-descriptor>
>    <class-descriptor class="Data>
>      <field-descriptor name="datum" />
>    </class-descriptor>
>
> The actual node types would be (simplified CND):
>
>    Xyz > nt:base
>      + data (DataList)
>    DataList > nt:base
>      + * (Data)
>    Data > nt:base
>      - datum (String)
>
> Here, we cannot easily create a descriptor for the DataList node type.
> Is this also your issue ?
>
> Regards
> Felix
>
>


-- 
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
                             -- The Princess Bride

Mime
View raw message