-->
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: Hibernate Classes needed on fat(Swing) Client?!
PostPosted: Thu Oct 20, 2005 11:01 am 
Regular
Regular

Joined: Thu Feb 19, 2004 4:48 am
Posts: 62
Hi,

we have a fat (Swing-)Client that connects to a JBoss that runs ejb3-persistent beans. As all Collections we send to the client (finderResults, but also mapped relations) are Hibernate-Collections, we have to distribute the Hibernate-Classes to the Client - is there a way around that, eg. is it possible to have a fetch.type=eager and have plain java-collections for mappings instead of Hibernate-Collections?!

The brute-force approach would be to have some DTO's and move all contents from the original objects into the DTO's (and back again on update), but I would be very happy, if we could just hand out the persistent classes to the client&get them back again on update...

Thx for any help
stefan


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 11:11 am 
Beginner
Beginner

Joined: Tue Apr 05, 2005 4:27 pm
Posts: 40
Location: canada
http://forum.hibernate.org/viewtopic.php?t=932779

i use a util class that takes hibernate collections and converts them to java collections... i'm not sure there are many other options if you don't want to include the hibernate jar on the client.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 3:28 am 
Regular
Regular

Joined: Thu Oct 13, 2005 4:19 am
Posts: 98
I 'd have the same use case.
I can imagine that depending on what my code does with those collections, their implementation does matter.

For example: in a certain list I am doing a lot of inserts, so a LinkedList implementation would perform a lot better then an ArrayList. Then again, in another list I am doing a lot of index gets, so I 'd prefer ArrayList.

_________________
http://www.ohloh.net/accounts/ge0ffrey


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.