[jboss-user] [JBoss jBPM] - Re: Problems getting the type of a node
Olivier_Debels
do-not-reply at jboss.com
Thu Nov 16 09:19:27 EST 2006
Isn't the reason for this that you get a hibernate proxy for the node instead of the real Node. The class hierarchy is not known by this proxy. you can retrieve the real object and try typing there...
| public static Object getProxiedObject(Object proxy) {
| if (proxy instanceof HibernateProxy) {
| LazyInitializer initializer = ((HibernateProxy) proxy)
| .getHibernateLazyInitializer();
| return initializer.getImplementation();
| }
|
| return proxy;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986534#3986534
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986534
More information about the jboss-user
mailing list