-->
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.  [ 4 posts ] 
Author Message
 Post subject: using Hibernate for Application other than WEB :)
PostPosted: Mon Oct 28, 2013 8:06 am 
Newbie

Joined: Mon Nov 10, 2008 5:23 am
Posts: 3
Hey there,
i asked google quite a lot, but wasn't able to get some really good ressources on what is the best practice and what is really a feasible solution... So here my Scenario, as simple as it sounds :D
What is the best approach, having a Client/Server Architecture with Hibernate as persistence Layer and a Client e.g. using Swing.
I found a lot on lazy-loading/RMI/etc. but most of the articles already 5 years old. I guess/hope, using more recent Hibernate versions will provide some awesome techniques.. ;)
Are there Arcticles you can recommend or what would your approach look like?

best regards and thank you


Top
 Profile  
 
 Post subject: Re: using Hibernate for Application other than WEB :)
PostPosted: Mon Oct 28, 2013 11:19 am 
Senior
Senior

Joined: Tue Oct 28, 2008 10:39 am
Posts: 196
Why should there be changes? If only "server-side" knows your database and you have lazy-loading in use you have to do these same things you did five years ago. The problem of transaction lifetime and extended contexts is the same as before.


Top
 Profile  
 
 Post subject: Re: using Hibernate for Application other than WEB :)
PostPosted: Tue Oct 29, 2013 4:45 am 
Newbie

Joined: Mon Nov 10, 2008 5:23 am
Posts: 3
Thanks for your anwser.
What i was thinking about, whether there might be some kind of a library or so that helps in transferring objects fetched with hibernate on server-side to the client. As i think it's a better approach to have a tight client, that not holds all the hibernate jars and have its own connection to the DB but connects to a server that handles DB-Connections.
I don't really like the Idea (even it seems really proven) to create DTOs to send Objects to the client.


Top
 Profile  
 
 Post subject: Re: using Hibernate for Application other than WEB :)
PostPosted: Tue Oct 29, 2013 7:32 am 
Beginner
Beginner

Joined: Mon Nov 19, 2007 4:40 pm
Posts: 46
Your client should be working with a RESTful service on the server side... might i suggest Spring-Data-Rest with Hibernate as your ORM?

http://projects.spring.io/spring-data-rest/

_________________
-----------------------
Paul
Software Engineer
Lockheed Martin


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