-->
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.  [ 5 posts ] 
Author Message
 Post subject: Hibernate&Struts
PostPosted: Fri Mar 26, 2004 6:29 am 
Newbie

Joined: Mon Feb 09, 2004 3:23 am
Posts: 3
Location: Russia
As i understood Hibernate uses its own collections implementation,
the same does the Struts framework.
How can i use them together?
Is there any combined collections library?
(I use Hibernate 2.1.2 and Struts 1.1)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 26, 2004 3:14 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Hibernate respect the Collection interfaces, so there is no need for special synchronisation here. It's just like if you choosed a Hash implem vs an other one in the java.util package

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 29, 2004 3:00 am 
Newbie

Joined: Mon Feb 09, 2004 3:23 am
Posts: 3
Location: Russia
Thanks a lot. I got it. I just was confused that my Hibernate 2.1 library has commons-collections-2.1.jar and Struts has commons-collections.jar and they are different versions. Now i understand that it's just a realization of standard classes/interfaces from apache. And i must use the one that has older version. Am I right?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 29, 2004 3:31 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
No I would recommand you the commons-collection 2.1 usage.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 29, 2004 3:35 am 
Newbie

Joined: Mon Feb 09, 2004 3:23 am
Posts: 3
Location: Russia
Thanks again. You really helped me.


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