OCM toosl : Undefined JCR Type support

View: New views
2 Messages — Rating Filter:   Alert me  

OCM toosl : Undefined JCR Type support

by Christophe Lombart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I'm just wondering how to support the "undefined" jcr type ?
What are your expectation ? What are your use cases ? I would like to have
some good examples where the undefined type could be use.
Is it interesting to map an "underfined" jcr prop into a javabean attribute
based on the Object class ?

br,
Christophe

Re: OCM toosl : Undefined JCR Type support

by Jukka Zitting :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On 2/20/07, Christophe Lombart <christophe.lombart@...> wrote:
> I'm just wondering how to support the "undefined" jcr type ?
> What are your expectation ? What are your use cases ? I would like to have
> some good examples where the undefined type could be use.
> Is it interesting to map an "underfined" jcr prop into a javabean attribute
> based on the Object class ?

Using Object for the mapping sounds reasonable.

I think the UNDEFINED property type is mostly used in contexts like
nt:unstructured, where more exact typing information is not available.
Such cases are not very applicable to the current static mapping
approach, but the "content-to-object" mapping approach I mentioned
earlier would directly benefit from such a catchall mapping.

BR,

Jukka Zitting
LightInTheBox - Buy quality products at wholesale price