jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Lombart" <christophe.lomb...@gmail.com>
Subject Re: [OCM] SimpleFieldHelper emits alot of WARN messages
Date Tue, 11 Sep 2007 20:32:27 GMT
On 9/11/07, Felix Meschberger <fmeschbe@gmail.com> wrote:
>
> Hi all,
>
> The SimpleFieldsHelper.retrieveSimpleField method is used to load JCR
> properties into "simple" fields. If a node does not have a mapped
> property, a warning message is emited. I am not sure, whether it is
> actually a problematic situation if a property, which is not mandatory
> does not exist ? In fact, if a property is mandatory, it may or may not
> exist and thus the mapping may be supplied or not.
>
> What do you think of lowering the severity of this situation to debug ?
> Alternatively (or in addition) the descriptor might be extended such
> that the mapping may declared as mandatory without rquiring the property
> to be mandatory or there might even be some default value specified or
> the SimpleFieldsHelper might access the property definition to see
> whether there is a default value defined ....



+2  (+1 for the debug, +1 for the  changing a little bit the code and/or
the descriptor).

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message