List Info

Thread: Persisting Object Graph




Persisting Object Graph
user name
2006-09-25 12:22:21

Hi all. Anybody implemented Object Graph Persistence using IBatis?

It seems like there is only loading support via Lazy Load. (Java version has join fetch).

It will be great if someone can share their experience or best practice.

 

Currently I am using external xml or custom attribute so that I can use that info

to persist all the related objects. It will be much easier if we have similar construct describing object relationship

for insert, update and delete as in “select” clause in ParameterMap.

 

Brian Choi

Persisting Object Graph
user name
2006-09-25 14:00:38
Nor the .NET or the Java version support that, you have to
do it manually

On 9/25/06, Choi, Brian <bchoifirstam.com> wrote:
>
>
>
> Hi all. Anybody implemented Object Graph Persistence
using IBatis?
>
> It seems like there is only loading support via Lazy
Load. (Java version has
> join fetch).
>
> It will be great if someone can share their experience
or best practice.
>
>
>
> Currently I am using external xml or custom attribute
so that I can use that
> info
>
> to persist all the related objects. It will be much
easier if we have
> similar construct describing object relationship
>
> for insert, update and delete as in "select"
clause in ParameterMap.
>
>
>
> Brian Choi


-- 
Cheers,
Gilles

<a href="http://www.amazon.com/gp/registry/6JCP7AORB0LE"
>Wish List</a>
Persisting Object Graph
user name
2006-09-25 16:17:33
I would love to hear more about your solutions, Brian. I
plan on 
implementing similar functionality.

Cheers,

Peter

Choi, Brian wrote:

> Hi all. Anybody implemented Object Graph Persistence
using IBatis?
>
> It seems like there is only loading support via Lazy
Load. (Java 
> version has join fetch).
>
> It will be great if someone can share their experience
or best practice.
>
> Currently I am using external xml or custom attribute
so that I can 
> use that info
>
> to persist all the related objects. It will be much
easier if we have 
> similar construct describing object relationship
>
> for insert, update and delete as in “select” clause in
ParameterMap.
>
> Brian Choi
>

Persisting Object Graph
user name
2006-09-25 23:24:50
I understand IBatis is trying to do one thing only --
Mapping object to
table.
However objects and also tables are only meaningful within
their
relationships to 
other entities. IBatis is very good product. But it forces
users to
reinvent this persistence
mechanism over and over and over. What a waste! I can see
that there
will be huge benefit 
toward to users if this is possible within (or as a plug in)
IBatis
framework.

Brian


-----Original Message-----
From: Gilles Bayon [mailto:ibatis.netgmail.com] 
Sent: Monday, September 25, 2006 7:01 AM
To: user-csibatis.apache.org
Subject: Re: Persisting Object Graph

Nor the .NET or the Java version support that, you have to
do it
manually

On 9/25/06, Choi, Brian <bchoifirstam.com> wrote:
>
>
>
> Hi all. Anybody implemented Object Graph Persistence
using IBatis?
>
> It seems like there is only loading support via Lazy
Load. (Java 
> version has join fetch).
>
> It will be great if someone can share their experience
or best
practice.
>
>
>
> Currently I am using external xml or custom attribute
so that I can 
> use that info
>
> to persist all the related objects. It will be much
easier if we have 
> similar construct describing object relationship
>
> for insert, update and delete as in "select"
clause in ParameterMap.
>
>
>
> Brian Choi


--
Cheers,
Gilles

<a href="http://www.amazon.com/gp/registry/6JCP7AORB0LE"
>Wish List</a>

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )