-->
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.  [ 3 posts ] 
Author Message
 Post subject: Custom Proxy
PostPosted: Wed Jun 02, 2004 1:49 pm 
Regular
Regular

Joined: Sat Oct 18, 2003 11:53 am
Posts: 55
I have looked through the documentation and maybe I missed it, but can someone point me to an example or docs on creating my own custom Proxy class?

We would like to do some custom processing around lazily loading some objects in our model. Is this possible? I am assuming it is. Thanks.

Matt Dowell
Notiva Corp.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 02, 2004 5:40 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This is not possible

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 02, 2004 10:59 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Actually this is possible. You would need to:
1) implement a custom implementation of the net.sf.hibernate.proxy.ProxyFactory interface;
2) create a custom persister using the net.sf.hibernate.persister.AbstractEntityPersister class hierarchy and overriding its createProxyFactory() method.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.