-->
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: Hibernate with Annotations in Distributed environment
PostPosted: Sat Jul 19, 2008 1:50 pm 
Newbie

Joined: Sat Jul 19, 2008 1:23 pm
Posts: 1
Hi,
We are working on project where client side is a Swing application and server side will use JBoss. We will use RMI/Swing Remoting for remote calls. We really liked the idea of using POJO persistence with Hibernate and annotations. Now the problem we are facing is to use those POJOs on the client side in Swing, because of its dependency on JPA implementation in Hibernate.

Any ideas how can we can use JPA annotations in POJOs and simultaneously use them on the client side also? Or we will have to use Hibernate mapping files?

Thanks & Regards,

JS


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 23, 2008 3:56 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

there is no problem adding Hibernate annotations to your POJOs. Of course you would have to include the annotations jar to the client application as well. There is no problem with this. You only get problems if your client have to run on a JVM where annotations are not available (speak JVM < 1.5). In this case you will have to use mapping files.

--Hardy


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.