Re: How do I specify the graffito jcr mapping for classes that extend ArrayList

2007-06-01 Thread Christophe Lombart

If you have time, I will add add a new unit test with an ArrayList (hope for
this wk).

br,
Christophe


On 5/31/07, rajab57 <[EMAIL PROTECTED]> wrote:



Hi,

Thanks for the reply.

I will refer to the jackrabbit project in future. I did not realize that
the
process has happened.
I looked at the example for HashMap. And I have implemented the case of
ArrayList, Set etc.
In this scenario this ElementsList extends ArrayList. And I was not sure
how
I can specify that mapping.

Thanks again,
Raji


Christophe Lombart wrote:
>
> The jcr mapping tools has been moved into the Jackrabbit project (
> http://jackrabbit.apache.org). I advise you to use the Jackrabbit
mailing
> list.
>
> FYI, ArrayList are supportedd by default.
>
> If you want to support your own collection/map class :
> 1/ your collection/map class have to implement the ManagableCollection
> interface.
> 2/ You have to specify the collection class name in the mapping file.
>
> We have a unit test with an specific HashMap. That's exactly the same
for
> collection like ArrayList, ...
> * See the class HashMapElement which implement the interface
> ManageableCollection
> * See the unit test HashMapTest.
> * Check in the mapping file "jcrmapping.xml" the mapping descriptor for
> the
> class o.a.j.ocm.testmodel.hashmap.Main which contains a descriptor based
> on
> the HashMapElement class.
>
> HTH
> Christophe
>
>
> On 5/31/07, rajab57 <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Example
>>
>> import java.util.ArrayList;
>> import java.util.ListIterator;
>>
>> public class MainClass {
>>private ElementsList elements;
>>
>> }
>>
>> public class ElementsList extends ArrayList  {
>>   private static final long serialVersionUID = 1L;
>>
>> }
>>
>>
>> public class Element {
>>private String name ;
>>private String id ;
>>
>> }
>>
>>
>>
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/How-do-I-specify-the-graffito-jcr-mapping-for-classes-that-extend-ArrayList-tf3848661.html#a10901203
>> Sent from the Graffito - Dev mailing list archive at Nabble.com.
>>
>>
>
>

--
View this message in context:
http://www.nabble.com/How-do-I-specify-the-graffito-jcr-mapping-for-classes-that-extend-ArrayList-tf3848661.html#a10901887
Sent from the Graffito - Dev mailing list archive at Nabble.com.




Re: [VOTE] Retire the Graffito project

2007-06-01 Thread Jukka Zitting

Hi,

On 6/1/07, Jukka Zitting <[EMAIL PROTECTED]> wrote:

So, please vote on retiring the Graffito project.


[x] +1, retire the Graffito project
[ ] -1, do not retire the Graffito project

It's unfortunate to see the project becoming dormant, but I guess
retiring it is the best option for now. There are a number of good
ideas in the codebase that I hope will live on in Jackrabbit, Portals,
and other interested projects.

BR,

Jukka Zitting


Re: [VOTE] Retire the Graffito project

2007-06-01 Thread Christophe Lombart

+1

On 6/1/07, Jukka Zitting <[EMAIL PROTECTED]> wrote:


Hi,

As discussed before, now that the JCR mapping component has been moved
to the Jackrabbit project I propose to retire the Graffito project
from the Apache Incubator. The Graffito codebase would be moved to
dormant state from where it can still be resurrected if renewed
interest appears.

So, please vote on retiring the Graffito project. The result of this
vote, if positive, will be used as a recommendation to the Incubator
PMC to formally retire Graffito.

[ ] +1, retire the Graffito project
[ ] -1, do not retire the Graffito project

BR,

Jukka Zitting



[VOTE] Retire the Graffito project

2007-06-01 Thread Jukka Zitting

Hi,

As discussed before, now that the JCR mapping component has been moved
to the Jackrabbit project I propose to retire the Graffito project
from the Apache Incubator. The Graffito codebase would be moved to
dormant state from where it can still be resurrected if renewed
interest appears.

So, please vote on retiring the Graffito project. The result of this
vote, if positive, will be used as a recommendation to the Incubator
PMC to formally retire Graffito.

[ ] +1, retire the Graffito project
[ ] -1, do not retire the Graffito project

BR,

Jukka Zitting


Re: [VOTE] Retire the Graffito project

2007-06-01 Thread Oliver Kiessler

So, please vote on retiring the Graffito project. The result of this
vote, if positive, will be used as a recommendation to the Incubator
PMC to formally retire Graffito.



[x] +1, retire the Graffito project
[ ] -1, do not retire the Graffito project

regards, oliver


Re: [VOTE] Retire the Graffito project

2007-06-01 Thread Carsten Ziegeler

[X] +1, retire the Graffito project

Carsten