Re: [Hibernate] Proxool and Hibernate 2.1

2003-12-12 Thread Chris Nokleberg
On Fri, Dec 12, 2003 at 06:51:49PM +0100, Bill Horsman wrote: > We can release Proxool 0.8.3 fairly soon. It depends a bit on how long > away Cglib 2 Final is. The wise thing would be to wait until then before > releasing Proxool 0.8.3. Chris, any ideas about that? Juozas said something about rele

Re: [Hibernate] Is CGLIB2 compatable with prior versions?

2003-11-27 Thread Chris Nokleberg
On Thu, Nov 27, 2003 at 04:44:06PM -0700, David Morris wrote: > I am having some problems in non-hibernate packages that use CGLIB since > updating Hibernate from CVS. Are there any known issues and if so is > there an upgrade guide? CGLIB 1.0 and 2.0 are not binary compatible, but the patche to u

Re: [Hibernate] Re: AST parser for HQL

2003-11-17 Thread Chris Nokleberg
On Mon, Nov 17, 2003 at 11:54:54AM -0800, Joshua Davis wrote: > That's a neat idea. So, 'raw:' would be a > pass-through that would pass things directly to the > underlying engine. The only issue there is when the > underlying syntax does not obey the rules of the > over-arching grammar (e.g. 'cu

Re: [Hibernate] Re: AST parser for HQL

2003-11-17 Thread Chris Nokleberg
On Mon, Nov 17, 2003 at 01:05:50PM -0500, Les A. Hazlewood wrote: > > How about we get a list of ANSI-standard SQL functions and portably > > support those and those only (I don't think there are many of them). > > This makes a lot of sense. However, what if something so commonly used (like a > c

Re: [Hibernate] Re: Re: Re: CGLIB2

2003-10-29 Thread Chris Nokleberg
On Thu, Oct 30, 2003 at 03:57:34PM +1100, Gavin King wrote: > LOL! > > Neither of us can upgrade, since we each need the other to upgrade first. > > So we have a deadlock. > > :-) Yes, although I will admit amusement was not my first reaction :-) Proxool guys are ok having a temporary dependen

[Hibernate] Re: Re: Re: CGLIB2

2003-10-29 Thread Chris Nokleberg
Gavin King wrote: > Wouldn't that mean that we would get both versions of CGLIB in our lib > directory? Until they upgrade, yes. > Perhaps its better to just wait until Proxool has also upgraded. Perhaps > we can put some pressure on them to get up to date. I've sent them a message. It will

[Hibernate] Re: Re: CGLIB2

2003-10-27 Thread Chris Nokleberg
Gavin King wrote: > Ah. hm. I am actually ready to release 2.1rc1. Just waiting on > Bela's stuff. > > Exactly how beta is "beta"? Not very beta? :-) Of course there may be some minor API changes going forward, but I think our release schedule is a bit conservative, so if all the tests pass i

[Hibernate] Re: CGLIB2

2003-10-27 Thread Chris Nokleberg
Josh Rehman wrote: > Hmm. Cglib is neat, but reflection is so fast that I would spend my time > elsewhere, for example adding support for a typesafe-enum representation > of lookup tables. :-) Hibernate won't get much reflection speedup with CGLIB2, since it is already using similar code in 1.0.

[Hibernate] Re: Caching cglib generated runtime proxies?

2003-09-29 Thread Chris Nokleberg
Mao, Dean (IHG) wrote: > I'm wondering if it's possible to do some generated-code at build time > instead of generating the proxies at runtime. I'm using hibernate for a > swing application and the majority of the initialization time is taken up > by hibernate's initialization of the configuration

Re: [Hibernate] Re: cglib reflect package

2003-09-27 Thread Chris Nokleberg
On Fri, Sep 26, 2003 at 09:30:34PM +0300, Juozas Baliuka wrote: > It is possible to find problem outside generated code for optimization: [snip] It's true, but I don't think it will make a difference in performance--supporting the exception in the generated code is just one extra iinc instruction

[Hibernate] Re: cglib reflect package

2003-09-26 Thread Chris Nokleberg
Bill Burke wrote: > I created similar functionality of CGLIBs "fast reflection" for our AOP > framework and it had an unnoticeable affect on the performance of the > framework. This was with Sun JDK 1.4.1_02 on Linux. Considering that > Hibernate's overhead is probably a lot higher, I don't think

[Hibernate] Re: Mass Deletes

2003-08-14 Thread Chris Nokleberg
Chris Nokleberg wrote: > [EMAIL PROTECTED] wrote: >> But my big problem is: how do we know which _loaded_ objects were deleted? >> I don't think there is any good way to do this. All we get back from DELETE >> is a row count. > > How about doing the mass de

[Hibernate] Re: Mass Deletes

2003-08-04 Thread Chris Nokleberg
[EMAIL PROTECTED] wrote: > But my big problem is: how do we know which _loaded_ objects were deleted? > I don't think there is any good way to do this. All we get back from DELETE > is a row count. How about doing the mass delete, and then building a select statement to see which of the loaded obj

Re: [Hibernate] Why should Session.load failure invalidate session?

2003-01-28 Thread Chris Nokleberg
On Wed, Jan 29, 2003 at 09:12:55AM +1100, [EMAIL PROTECTED] wrote: > Why not just do > > Session.find("from o in class MyClass where o.id=?", .) > > thats basically equivalent to Session.load(), but throws no exceptions Okay. > >I imagine the tricky bit is that the different JDBC driver

[Hibernate] Why should Session.load failure invalidate session?

2003-01-28 Thread Chris Nokleberg

Re: Session eviction (was Re: [Hibernate] Using CLOBs)

2003-01-24 Thread Chris Nokleberg
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.se

Session eviction (was Re: [Hibernate] Using CLOBs)

2003-01-24 Thread Chris Nokleberg
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

[Hibernate] Java-based query evaluator

2002-12-06 Thread Chris Nokleberg
I'm curious how feasible it would be to write a Java-based evaluator of Hibernate queries, or at least leverage the existing parser code to gain access to the abstract syntax tree. One possibility is that certain subsets of queries (most filters, I think) could be run within the JVM, saving a db

[Hibernate] Hooking into Hibernate classloader

2002-11-06 Thread Chris Nokleberg
I'd like to dynamically wrap my persistent classes using CGLIB or JDK1.3 proxies to provide things like getters for metadata which aren't in the compiled class file. I've done some searching and it appears that all of the persistent classes are loaded by Hibernate using cirrus.hibernate.helpers.

[Hibernate] Are types really needed for queries?

2002-10-24 Thread Chris Nokleberg
Just a thought...shouldn't Hibernate be able to infer the Type or Type[] needed in find/findIdentifiers/iterate calls from the query itself? e.g. List moreCats = sess.find( "from cat in class eg.Cat where " + "cat.name = 'Fritz' or cat.id = ? or cat.id = ?", new Object[] { id1, id2 }