-->
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: Manually Proxy Usage with Hibernate
PostPosted: Tue Nov 02, 2010 9:18 am 
Newbie

Joined: Tue Nov 02, 2010 9:05 am
Posts: 2
Hi,

i have one question.
I designed a UML Model with Proxy classes following the standard proxy pattern.

I don't want to use the integrated proxy mechanism from hibernate.
How can I configure Hibernate that it understands my own proxy classes.

Here the simple structure:
Code:
interface MyInterface{
... operations ...
}

class MyClass implements MyInterface{}

class MyClassProxy implements MyInterface{
private MyClass protectedObject;
}


E.g. I will use the Hibernate method session.save(MyClassProxy).
Currently Hibernate returns an error because no mapping is defined
for MyClassProxy, but a mapping for MyClass exists.

What can I do to solve this problem?

Thanks for your help!


Top
 Profile  
 
 Post subject: Re: Manually Proxy Usage with Hibernate
PostPosted: Tue Nov 02, 2010 1:51 pm 
Beginner
Beginner

Joined: Tue Oct 26, 2010 6:12 pm
Posts: 29
Quote:
How can I configure Hibernate that it understands my own proxy classes.


viewtopic.php?f=1&t=931424&view=previous


Top
 Profile  
 
 Post subject: Re: Manually Proxy Usage with Hibernate
PostPosted: Tue Nov 02, 2010 2:51 pm 
Newbie

Joined: Tue Nov 02, 2010 9:05 am
Posts: 2
Thanks for the fast answer!

I will try this, but a more detailed example of a possible Implementation would be helpful!


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.