Re: [Hibernate] Session-less OR-mapping

2003-08-19 Thread max
it is in the CVS (v21branch) /max - Original Message - From: "Andrea Aime" <[EMAIL PROTECTED]> To: "max" <[EMAIL PROTECTED]> Cc: "hibernate list" <[EMAIL PROTECTED]> Sent: Tuesday, August 19, 2003 10:28 AM Subject: Re: [Hibernate] Session-l

Re: [Hibernate] Session-less OR-mapping

2003-08-19 Thread Andrea Aime
max wrote: On Sunday 17 August 2003 21:41, Max Rydahl Andersen wrote: > how about just calling clear() on the session after each "cache less" > work you need ? > Oh, by the way, there is no "clear()" method in Session interface as of Hibernate 2.0.2. Is it a recent (CVS) addition? Or you do mean t

Re: [Hibernate] Session-less OR-mapping

2003-08-19 Thread max
> On Sunday 17 August 2003 21:41, Max Rydahl Andersen wrote: > > how about just calling clear() on the session after each "cache less" > > work you need ? > > > > Uhm... what is the overhead of inserting the objects in the cache to > remove them afterwards if you're inserting 200.000 bjects in >

Re: [Hibernate] Session-less OR-mapping

2003-08-18 Thread Andrea Aime
On Sunday 17 August 2003 21:41, Max Rydahl Andersen wrote: > how about just calling clear() on the session after each "cache less" > work you need ? > Uhm... what is the overhead of inserting the objects in the cache to remove them afterwards if you're inserting 200.000 bjects in the database? Usi

Re: [Hibernate] Session-less OR-mapping

2003-08-17 Thread Max Rydahl Andersen
how about just calling clear() on the session after each "cache less" work you need ? /max Andrea Aime wrote: On Friday 15 August 2003 06:15, [EMAIL PROTECTED] wrote: I guess it would be easily possible to turn the cache *off*. But what do you do about circular references? You get exposed to

Re: [Hibernate] Session-less OR-mapping

2003-08-17 Thread Andrea Aime
On Friday 15 August 2003 06:15, [EMAIL PROTECTED] wrote: > I guess it would be easily possible to turn the cache *off*. > > But what do you do about circular references? > > You get exposed to stack overflows w/o a cache. Uh, I see, maybe just keep a statement-local list of known object ids (if

Re: [Hibernate] Session-less OR-mapping

2003-08-14 Thread Gavin . King
| | cc: | | Subject: [Hibernate] Session-less OR-mapping | >

[Hibernate] Session-less OR-mapping

2003-08-14 Thread Andrea Aime
Hi Gavin, hi everybody, working on an application that needs to manage lots of objects/records, I'm wondering if it would be difficult to have a session-less or-mapping, that is, something that just enables HQL, transactions, statement caching and batching withouth putting objects in the session c