You are viewing a plain text version of this content. The canonical link for it is here.
Posted to graffito-dev@incubator.apache.org by rajab57 <ra...@gmail.com> on 2007/06/04 21:02:07 UTC

Can jcr mapping be specified through bean fields without set/get methods ?

Hi,

I would like to do jcr mapping for a java class through the fields. I have
some scenarios where
I would like to expose only the getter and not allow it to be modified. Also
these objects are in states where they cannot be directly used with set and
get from outside. In these situations, i woulld like to write java Beans
without the getter/setter pair.

When I do such a mapping I get an error message that the setter method is
not there.

I looked at the graffito-jcr-mapping.dtd to see if there were any flags that
can handle the case without set/get. But I could not find any.

Is there a way to specifiy java class without setter/getter for jcr Mapping
?

Thanks for the help in advance,
Raji


I have already posted this question in jackrabbit forum. Sorry for posting
this here again. I was not sure if anybody is checking graffito related
questions there.

-- 
View this message in context: http://www.nabble.com/Can-jcr-mapping-be-specified-through-bean-fields-without-set-get-methods---tf3867935.html#a10958356
Sent from the Graffito - Dev mailing list archive at Nabble.com.


Re: Can jcr mapping be specified through bean fields without set/get methods ?

Posted by Christophe Lombart <ch...@gmail.com>.
Sorry I didn't see your post on the jackrabbit mailing list.
This feature is not yet supported. You are welcome to create a new JIRA
issue (from Jackrabbit).

br,
Christophe


On 6/4/07, rajab57 <ra...@gmail.com> wrote:
>
>
> Hi,
>
> I would like to do jcr mapping for a java class through the fields. I have
> some scenarios where
> I would like to expose only the getter and not allow it to be modified.
> Also
> these objects are in states where they cannot be directly used with set
> and
> get from outside. In these situations, i woulld like to write java Beans
> without the getter/setter pair.
>
> When I do such a mapping I get an error message that the setter method is
> not there.
>
> I looked at the graffito-jcr-mapping.dtd to see if there were any flags
> that
> can handle the case without set/get. But I could not find any.
>
> Is there a way to specifiy java class without setter/getter for jcr
> Mapping
> ?
>
> Thanks for the help in advance,
> Raji
>
>
> I have already posted this question in jackrabbit forum. Sorry for posting
> this here again. I was not sure if anybody is checking graffito related
> questions there.
>
> --
> View this message in context:
> http://www.nabble.com/Can-jcr-mapping-be-specified-through-bean-fields-without-set-get-methods---tf3867935.html#a10958356
> Sent from the Graffito - Dev mailing list archive at Nabble.com.
>
>