-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Getting a proxy object instead of the real instance (!)
PostPosted: Tue Dec 12, 2006 6:23 am 
Newbie

Joined: Fri Nov 07, 2003 9:26 am
Posts: 3
Hey,

My problem : I get a proxy object when I call token.getNode() (the mapping of Token is shown below) :

org.jbpm.graph.def.Node$$EnhancerByCGLIB$$790e4660


I would like to get the node instance instead. What could I do to prevent this behaviour ?

Using hibernate 3.2.

Thank you for your help.

LF


<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping default-access="field">
<class name="org.jbpm.graph.exe.Token"
table="JBPM_TOKEN">
<id name="id" column="ID_"><generator class="native" /></id>
<version name="version" column="VERSION_" />

<many-to-one name="node"
column="NODE_"
foreign-key="FK_TOKEN_NODE" />
</class>
</hibernate-mapping>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 12, 2006 7:54 am 
Regular
Regular

Joined: Wed Mar 23, 2005 8:43 am
Posts: 105
Location: Moscow, Russia
You can use Hibernate.initialize(token.getNode()) inside session.

_________________
Best Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.