-->
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: How to decouple the dependency between pojos and hibernate
PostPosted: Wed Oct 19, 2005 9:20 am 
Newbie

Joined: Wed Oct 19, 2005 9:08 am
Posts: 2
In my case, I use rmi for the communication of client and server. Hibernate works fine for the server, and the client and the server share some POJOs. The problem is the client also needs to use thoses POJOs which are persistent objects and processed by hibernate. When the client uses such POJOs, the system ask for some classes of Hibernate, e.g. PersistentSet, CGLIBLazyInitializer etc.

I would like to prefer to using such POJOs without dependency of Hibernate so that the client can use them freely with adding libraries of hibernate. e.g., using JDK built-in HashSet instead of PersistentSet.

Has anybody any idea about how to accomplish this? Thanks in advance.


Top
 Profile  
 
 Post subject: Re: How to decouple the dependency between pojos and hiberna
PostPosted: Wed Oct 19, 2005 9:23 am 
Newbie

Joined: Wed Oct 19, 2005 9:08 am
Posts: 2
liuhonghai wrote:
...
I would like to prefer to using such POJOs without dependency of Hibernate so that the client can use them freely with adding libraries of hibernate. e.g., using JDK built-in HashSet instead of PersistentSet.
...


Sorry, it should be without


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.