-->
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: Preventing proxy initilisation on particular properties
PostPosted: Sat May 21, 2005 1:36 pm 
Newbie

Joined: Sat Jan 29, 2005 7:09 am
Posts: 11
Hibernate version: 3.0.3

One of the getter methods of my persistent object simply calls a method on a singleton object, i.e. it does not access any of the class variables. Therefore, this method could work fine if the object is proxied.

However, when I call this method on the object's proxy, Hibernate tries to initialise the proxy, and since this call is made in the business tier (outside the scope of the session) I get an exception.

Is there any way of telling Hibernate not to intercept this particular method?

I don't really want to have to initialise the object, for obvious performance reasons. I also don't want to move the method somewhere else since the method is declared on an interface implemented by the object.

Any help would be appreciated,

Thanks,

Doug.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 11:27 am 
Regular
Regular

Joined: Tue May 24, 2005 10:19 am
Posts: 65
you can retire this field of xml map.
for more help, put more info.


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.