This content has been marked as final.
Show 6 replies
-
1. Re: what are the active tokens
kukeltje Dec 19, 2008 7:04 AM (in response to tbee)That worked ok, but for some reason I now get Nodes that have a class "enhancedByCGLIB" and cannot use that anymore.
Standard hibernate proxy issue... search the web on how to get the real implementation (sorry, I have no link at hand, each time I forget to put it in my bookmarks)
After that, you can use all methods on it. -
2. Re: what are the active tokens
tbee Dec 19, 2008 7:28 AM (in response to tbee)"kukeltjeStandard hibernate proxy issue... search the web on how to get the real implementation (sorry, I have no link at hand, each time I forget to put it in my bookmarks) [/quote wrote:
Yes, I figured that out by now :-) The only solutions I find using the classname and substringing it, but with a name like:
Node$$EnhancerByCGLIB$$561ff92b
That won't work; it's a node, yes, what node? -
3. Re: what are the active tokens
tbee Dec 19, 2008 7:33 AM (in response to tbee)if (lNode instanceof HibernateProxy)
{
lNode = (Node) ((HibernateProxy)lNode).getHibernateLazyInitializer().getImplementation();
} -
4. Re: what are the active tokens
kukeltje Dec 19, 2008 7:42 AM (in response to tbee)Yep that was it... Does it work now?
-
5. Re: what are the active tokens
tbee Dec 19, 2008 7:45 AM (in response to tbee)"kukeltje" wrote:
Yep that was it... Does it work now?
Yup! -
6. Re: what are the active tokens
kukeltje Dec 19, 2008 7:59 AM (in response to tbee)I immediately created a small testcase locally so I will not forget it anymore ;-)