RE: [Hibernate] Ohhh this looks cool

2002-10-22 Thread Ampie Barnard
I did some superficial tests under JDK1.4. With invocation handling that just delegates to the actual implementation, it seems that CG is slower than Proxies initially. But after several thousand invocations CG gets substantially (20+%) faster than Proxies. My theory is that CG somehow benefits mor

RE: [Hibernate] Ohhh this looks cool

2002-10-22 Thread Ampie Barnard
hi, Cglib is brilliant for simply wrapping method calls. As I understand its main feature is generating classes dynamically by merging two classes that were not in any way related at compile time. The generated class looks like a subclass of the original, so you don't need 1000 interfaces as with

RE: [Hibernate] Using hibernate - best practices

2002-11-15 Thread Ampie Barnard
I like the services-layer idea, but also have to agree that it leads to repetitive code. In our system, we have implemented the service layer as session beans. The transaction management is taken care of by the container. But we still have the repititive try{ opensession(); }catch(Exception e){ ro

RE: [Hibernate] What's needed for JBoss integration?

2003-10-12 Thread Ampie Barnard
Bill and Gavin, There is something I have been thinking about ever since Gavin joined the JBoss Group. Has the relationship between Hibernate and JBoss4 AOP ever been discussed? Could bringing JBoss4 AOP and Hibernate closer together could have some interesting spin offs? Maybe both integrating Hi