jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fard <maurice.f...@gmail.com>
Subject Re: AW: an alternative OCM (Object Content Mapping)
Date Wed, 12 Nov 2008 20:05:14 GMT

Hello Fabián,

Thanks for helpful advices.

Regards
Maurice Fard

Fabián Mandelbaum wrote:
> 
> Fard,
> 
>  for a class to implement Serializable, all you have to do is add
> "implements Serializable" like this:
> 
> public class Bla extends BlaBla implements Serializable {
> ...
> }
> 
> You may need also to declare a final int with a 'magic number' (for
> example the Eclipse IDE proposes you one which you can use, provided
> your class won't change anymore) or -1 (if your class is still 'in
> development', use this) to keep strict Java/IDEs happy.
> 
> If you cannot do this, because you don't have the source or cannot
> compile class Bla yourself, you can always try the not so elegant
> solution I've proposed to someone else not long ago of a wrapper class,
> like this:
> 
> //JCROM Annotations go here
> public class BlaWrapper implements Serializable {
>     Bla bla;
> 
>     public BlaWrapper(Bla bla) {
>        this.bla = bla;
>     }
> 
>     public getBla() { return bla; }
> }
> 
> and you use BlaWrapper with JCROM instead of Bla.
> 
> Good luck!
> 
> Fard escribió:
>> Hi
>>
>> Yes. And when I map my class with @JcrSerializedProperty annotation
>> mapped
>> to java.lang.Object field
>> during validation of the field I get an error that the field which is
>> annotated as @JcrSerializedProperty does not implement
>> java.io.Serializable
>>
>> Maurice Fard
>>
>> Hi Fard,
>>
>> have you tried the @JcrSerializedProperty JCROM annotation to map the
>> java.lang.Object field?
>> (http://code.google.com/p/jcrom/wiki/SerializedChild)
>>
>> BR,
>> Leander
>>
>>
>>   
>>> -----Ursprüngliche Nachricht-----
>>> Von: Fard [mailto:maurice.fard@gmail.com]
>>> Gesendet: Montag, 10. November 2008 17:06
>>> An: users@jackrabbit.apache.org
>>> Betreff: Re: an alternative OCM (Object Content Mapping)
>>>
>>>
>>> Hello Luis,
>>>
>>> Now I am working on a project and I have two weeks deadline.
>>> Unfortunatly
>>> Icannot wait.
>>> Just I explain that in JCROM I can not define a field of
>>> java.lang.Object as
>>> a childNode or Property.
>>>
>>> Fard
>>>
>>> Luis Gervaso wrote:
>>>     
>>>> Hi Fard,
>>>>
>>>> I'm am currently working on a solution similar to JCROM, that i will
>>>> release
>>>> soon as open source tool
>>>>
>>>> can you explain your requirements, so i can include them?
>>>>
>>>> BR
>>>>
>>>> Luis
>>>>
>>>> On Mon, Nov 10, 2008 at 11:40 AM, Fabián Mandelbaum
>>>> <fmandelbaum@gmail.com>wrote:
>>>>
>>>>       
>>>>> Fard escribió:
>>>>>         
>>>>>> Hello there,
>>>>>>
>>>>>> I am looking for an alternative OCM (Object Content Mapping). I
>>>>>>           
>>> have
>>>     
>>>>> used
>>>>>         
>>>>>> JCROM and I found it is useful, but recently I found it is not a
>>>>>>           
>>> good
>>>     
>>>>> remedy
>>>>>         
>>>>>> for java generic programming.
>>>>>>
>>>>>> I really really appreciate any help.
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> Fard
>>>>>>
>>>>>>           
>>>>> Hello Fard,
>>>>>
>>>>>    what do you mean with "Java Generic Programming"? Things like:
>>>>>
>>>>>    public class SomeDAO<T>
>>>>>
>>>>>    for example?
>>>>>
>>>>>         
>>>>
>>>> --
>>>> -------------------------------------------
>>>> Luis Alberto Gervaso Martin
>>>> Java EE Architect & Instructor
>>>> C/ Cuenca 4A, 2ºB
>>>> Getafe (Madrid)
>>>> SPAIN
>>>> mobile: (+34) 627983344
>>>> luis.gervaso@gmail.com
>>>>
>>>>
>>>>       
>>> --
>>> View this message in context: http://www.nabble.com/an-alternative-OCM-
>>> %28Object-Content-Mapping%29-tp20414717p20422743.html
>>> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>>>     
>>
>>
>> VVA Networks GmbH
>>
>> Mario-Leander Reimer
>> Dipl.-Inf. (FH)
>> Teamleitung Publishing Solutions
>> ---------------------------------------------------------------------------
>> VVA Networks GmbH
>> : medien mit zukunft
>> Geisenhausenerstraße 15-17
>> 81379 München
>> Deutschland
>> ---------------------------------------------------------------------------
>> Fon:    +49 89 2000375-610
>> Fax:    +49 89 2000375-699
>> Mobil:  +49 173 5883541
>> ---------------------------------------------------------------------------
>> leander.reimer@vva-networks.de
>> www.vva-networks.de
>>
>> -----------------------------------------------------------------------
>> HRB 33884 Düsseldorf
>> Geschäftsführer Rolf Christian Kassel
>> -----------------------------------------------------------------------
>> Ein Unternehmen der VVA Kommunikation
>> http://www.vva.de
>> -----------------------------------------------------------------------
>> omnisuite® - integrate. automate. communicate.
>> http://www.omnisuite.de
>> -----------------------------------------------------------------------
>>
>> Diese Nachricht (inklusive aller Anhänge) ist vertraulich. Sie darf
>> ausschließlich durch den vorgesehenen Empfänger und Adressaten gelesen,
>> kopiert oder genutzt werden. Sollten Sie diese Nachricht versehentlich
>> erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon
>> unverzüglich zu informieren und die Nachricht zu löschen. Jede unerlaubte
>> Nutzung oder Weitergabe des Inhalts dieser Nachricht, sei es vollständig
>> oder teilweise, ist unzulässig.
>>
>> This message (including any attachments) is confidential and may be
>> privileged. It may be read, copied and used only by the intended
>> recipient.
>> If you have received it in error please contact the sender (by return
>> E-Mail) immediately and delete this message. Any unauthorised use or
>> dissemination of this message in whole or in part is strictly prohibited.
>>
>>
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/an-alternative-OCM-%28Object-Content-Mapping%29-tp20414717p20468253.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message