On Fri, Jan 24, 2003 at 10:30:08AM -0800, Chris Nokleberg wrote:
> So, how about
> query.setTransient(true)?
>
> All objects returned by the query would be transient and not take up
> space in the cache.
Before I forget, if you have setTransient you could also have
query.setReuseInstances(tr
On Fri, Jan 03, 2003 at 03:10:21PM +1100, Gavin King wrote:
> For Hibernate 2, should we add one or both of:
>
> Session.evict(foo); //remove foo from the Session-level cache
> Session.refresh(foo); //reload foo's state from the database
>
> There *would* be some exotic cases (like this one) wher
Gavin King wrote:
Ugo, would you please produce a page documenting your approach to this
for the Wiki. Other people will also need to know this stuff.
Done. I also hope I can find the time to write some reusable code that
spares me from having to do all this every single time I want to store a
Cl
> it *mostly* works. The only problem seems to be
> that Oracle
> apparently does not distinguish between zero-length strings
> and NULL, so
I have run into this before with Oracle. Very yucky.
> if you initialize the CLOB with Hibernate.createClob(""), the actual
> database column is nullifi
Gavin King wrote:
A the > 4000 characters bit is where you start to need
the "for update" clause. We were wondering about that
earlier. I think you *could* make it work like this:
s = sf.openSession();
tx = s.beginTransaction();
foo = new Foo();
foo.setClob( Hibernate.createClob("") );
s.save(f
t();
s.close();
Would you try that for me, please?
Gavin
> -Original Message-
> From: Ugo Cei [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 1 January 2003 3:22 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Hibernate] Using CLOBs
>
>
> Gavin King wrote:
> > The
Gavin King wrote:
The name of the type is "clob", and the expected property type
is java.sql.Clob. Note that there are restrictions upon what
you can do with Clobs (they can't be used outside of transaction,
for example).
You should also take notice of Hibernate.createClob().
Thanks. Everything wor
The name of the type is "clob", and the expected property type
is java.sql.Clob. Note that there are restrictions upon what
you can do with Clobs (they can't be used outside of transaction,
for example).
You should also take notice of Hibernate.createClob().
> -Original Message-
> From: U