RE: [Hibernate] Trouble with proxy implementations

2003-01-31 Thread Schnitzer, Jeff
Ah, I see. (I'm ccing cglib-devel because this conversation seems more appropriate there) The code which does the reflection in my application is part of an external library (domify). With some significant hassle I could change domify to have special knowledge of cglib proxies but it seems like

[Hibernate] HSQL cached tables

2003-01-31 Thread Markus Kohler
Hi, HSQL supports so called "Cached tables" (http://hsqldb.sourceforge.net/web/hsqlModes.html). I'm wondering if it is somehow possible to tell Hibernate (1.x )that some tables are cached whereas others are not. The only difference is that cached tables are created with "CREATE CACHED" instead o

Re: [Hibernate] hib2 - parent in composite-element

2003-01-31 Thread Gavin King
Thats perfectly fine its just doing a deep copy, for the purposes of dirty checking, so it doesn't need the parent. Of course it also doesn't need to call setParent()! ;) I will remove that call, but its harmless, so don't worry about it. - Original Message - From: "Viktor Szathm

Re: [Hibernate] Trouble with proxy implementations

2003-01-31 Thread Juozas Baliuka
This public method implemented for *all* proxy instances. Proxy implements net.sf.cglib.Factory interface it is used for optimization to eleminate reflection. We can rename getters and setters, but it is public API and you can filter methods this way: public boolean accept(){ return net.sf.cglib

RE: [Hibernate] Trouble with proxy implementations

2003-01-31 Thread Schnitzer, Jeff
It gets weird. The problem is that *sometimes* the proxy exposes a getInterceptor() method of type net.sf.cglib.proxy.MethodInterceptor. When I restart the JVM, it usually works for a while - this method is not exposed. Eventually, however, something "breaks" and this method is consistently expo

Re: [Hibernate] hib2 - parent in composite-element

2003-01-31 Thread Gavin . King
private void setTopParent(TopLevelParent topParent) { this.parent = topParent.getComponent(); } should do what you need ;) "Viktor Sz

[Hibernate] hib2 - parent in composite-element

2003-01-31 Thread Viktor Szathmary
hi, i decided to take the path of least resistance, and migrate to hib2 (took about 5 minutes) to get support for ... alas, i got an IllegalArgumentException: "argument type mismatch" when it's calling the setter... it turns out the problem is more of a misunderstanding - the for the nested comp

[Hibernate] [ hibernate-Bugs-677802 ] small typo in hibernate-configuration-2.0.dtd

2003-01-31 Thread SourceForge.net
Bugs item #677802, was opened at 2003-01-30 16:21 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=677802&group_id=40712 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Leonardo Quijano (lquijano) Assigned to: Nobody/Anon

[Hibernate] [ hibernate-Bugs-677800 ] Configuration.configure(String) bug

2003-01-31 Thread SourceForge.net
Bugs item #677800, was opened at 2003-01-30 16:20 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=428708&aid=677800&group_id=40712 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Leonardo Quijano (lquijano) Assigned to: Nobody/Anon

RE: [Hibernate] Trouble with proxy implementations

2003-01-31 Thread Schnitzer, Jeff
It's possible that there is a getter on the proxy that returns an object that has the getSession() method. Difficult to tell from my current test app. I'll write some introspection code to find out what's going on. Jeff > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTE

RE: [Hibernate] Trouble with proxy implementations

2003-01-31 Thread Gavin . King
Wierd those methods are defined on the _handler_ class, not the proxy interface itself. And I didn't thing the proxies implement the interface of the MethodInterceptor

Re: [Hibernate] More - Saving Collections.

2003-01-31 Thread Gavin . King
>> At this point hibernate first tries to save the child record << No, cascades to collections happen *after*. ie. the child will be saved after the parent. Anyway, The sequence of steps *should* be >1) I create an new parent class >2) I create a new child class >3) I add the child record to th

Re: [Hibernate] Trouble with proxy implementations

2003-01-31 Thread Gavin . King
H. HibernateProxy itself only declares writeReplace(). Do you mean methods that are coming from CGLIB, or are you referring to an older version of Hibernate?

[Hibernate] Trouble with proxy implementations

2003-01-31 Thread Schnitzer, Jeff
I'm having a small problem with the generated proxy implementations in one of my webapps. My data objects are of course java beans, and these java beans are passed up into the presentation tier. Among other things, my presentation tier uses reflection to examine the data (model) components and ge

Re: RE: [Hibernate] CodeGenerator in Hibernate2

2003-01-31 Thread Gavin . King
Yeah, I'm not sure. I havn't had time to look at the code myself, and no response from Max.. is he on holiday or something? otisg <[EM

Re: [Hibernate] hibernate set foreign key to null before issue deletion?

2003-01-31 Thread Gavin . King
You can "turn off" the disassociating UPDATE be using a bidirectional association with readonly="true" for the collection mapping. jieshen