You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by lujie <lj...@126.com> on 2008/09/30 04:00:51 UTC
Hybrid schemes with table and blob mapping for OCM?
Hi,
as far as i can see, the hibernate mapping is for database table , and
the ocm is for database blob. And
maybe the ocm can provide another choice that we can decide whether the java
bean be saved as blob or
hibernate entity
any ideas?
THX
lujie
--
View this message in context: http://www.nabble.com/Hybrid-schemes-with-table-and-blob-mapping-for-OCM--tp19734903p19734903.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Hybrid schemes with table and blob mapping for OCM?
Posted by lujie <lj...@126.com>.
many thanks
--
View this message in context: http://www.nabble.com/Hybrid-schemes-with-table-and-blob-mapping-for-OCM--tp19734903p19739160.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Hybrid schemes with table and blob mapping for OCM?
Posted by Christophe Lombart <ch...@gmail.com>.
On Tue, Sep 30, 2008 at 09:46, lujie <lj...@126.com> wrote:
>
> Hi,
>
> The question is, i have a simple java bean named customer with two fields,
> one is id ,the other is name.
> Using ocm, i can persist the bean into RDBMS, the result is a blob in the
> database table(bundledpersistencemanager.)
> So, can i persist the bean into RDBMS like hibernate does? the result
> should
> be one row in the database table with table column id and name.
No of course, there is no comparison to do between RDBMS and JCR/OCM. The
goal of JCR is not to store content in an classic RDBMS schema. JCR doesn't
specify tables, rows and columns, it is managing nodes and properties. This
is really different and better for a content based application. Futhermore,
the RDBMS model can cause many problems in terms of content management. The
more you are managing content, the less the classical RDBMS model is
interesting.
Jackrabbit is using bundledpersistencemanager internally for mainly
performance & technical reasons but the JCR API is hidden this
implementation detail.
In conclusion, OCM is only a mapping tools for the JCR model (nodes &
properties) , not to for RDBMS (tables & columns).
Christophe
>
>
> lujie
>
>
> Christophe Lombart wrote:
> >
> > Hi,
> >
> > OCM is a object mapping for a content repository based on JCR (eg.
> > Jackrabbit). this is not only used for binaries. It can be used for any
> > kind
> > of content. Here, we are only focusing on content repository. However, it
> > is
> > be possible to use a RDBMS and a content repo (JCR) from the same
> > application.
> >
> > Christophe
> >
> > On Tue, Sep 30, 2008 at 04:00, lujie <lj...@126.com> wrote:
> >
> >>
> >> Hi,
> >> as far as i can see, the hibernate mapping is for database table , and
> >> the ocm is for database blob. And
> >> maybe the ocm can provide another choice that we can decide whether the
> >> java
> >> bean be saved as blob or
> >> hibernate entity
> >> any ideas?
> >>
> >> THX
> >>
> >> lujie
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Hybrid-schemes-with-table-and-blob-mapping-for-OCM--tp19734903p19734903.html
> >> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Hybrid-schemes-with-table-and-blob-mapping-for-OCM--tp19734903p19737567.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>
Re: Hybrid schemes with table and blob mapping for OCM?
Posted by lujie <lj...@126.com>.
Hi,
The question is, i have a simple java bean named customer with two fields,
one is id ,the other is name.
Using ocm, i can persist the bean into RDBMS, the result is a blob in the
database table(bundledpersistencemanager.)
So, can i persist the bean into RDBMS like hibernate does? the result should
be one row in the database table with table column id and name.
lujie
Christophe Lombart wrote:
>
> Hi,
>
> OCM is a object mapping for a content repository based on JCR (eg.
> Jackrabbit). this is not only used for binaries. It can be used for any
> kind
> of content. Here, we are only focusing on content repository. However, it
> is
> be possible to use a RDBMS and a content repo (JCR) from the same
> application.
>
> Christophe
>
> On Tue, Sep 30, 2008 at 04:00, lujie <lj...@126.com> wrote:
>
>>
>> Hi,
>> as far as i can see, the hibernate mapping is for database table , and
>> the ocm is for database blob. And
>> maybe the ocm can provide another choice that we can decide whether the
>> java
>> bean be saved as blob or
>> hibernate entity
>> any ideas?
>>
>> THX
>>
>> lujie
>> --
>> View this message in context:
>> http://www.nabble.com/Hybrid-schemes-with-table-and-blob-mapping-for-OCM--tp19734903p19734903.html
>> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Hybrid-schemes-with-table-and-blob-mapping-for-OCM--tp19734903p19737567.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Hybrid schemes with table and blob mapping for OCM?
Posted by Christophe Lombart <ch...@gmail.com>.
Hi,
OCM is a object mapping for a content repository based on JCR (eg.
Jackrabbit). this is not only used for binaries. It can be used for any kind
of content. Here, we are only focusing on content repository. However, it is
be possible to use a RDBMS and a content repo (JCR) from the same
application.
Christophe
On Tue, Sep 30, 2008 at 04:00, lujie <lj...@126.com> wrote:
>
> Hi,
> as far as i can see, the hibernate mapping is for database table , and
> the ocm is for database blob. And
> maybe the ocm can provide another choice that we can decide whether the
> java
> bean be saved as blob or
> hibernate entity
> any ideas?
>
> THX
>
> lujie
> --
> View this message in context:
> http://www.nabble.com/Hybrid-schemes-with-table-and-blob-mapping-for-OCM--tp19734903p19734903.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>