-->
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: Using Hibernate with Web Service(Axis SOAP)....
PostPosted: Fri Oct 19, 2007 11:33 am 
Newbie

Joined: Mon Aug 13, 2007 11:54 am
Posts: 6
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
Hibernate 3.x

Name and version of the database you are using:
PostgreSQl

Currently our project has a web service layer that serves up our object using hibernate. The problem we have encountered is that are project uses List extensively example List list = new Vector() or List list = new LinkedList().This work fine until we find out that AXIS and SOAP doesnt like anything but Vectors and Arrays for interoperbility reason I suppose.

So code like List list = new Vector() is not liked by AXIS as list is too abstract or something. Its wants Vector list = new Vector(). Then when t his is done Hibernate doesnt like the use of Vectors for our mappings and wants us to use the more abstract List type. A mapping like this

Code:
<bag name="payments" lazy="false" inverse="true"
         cascade="all">
         <key column="invnum" />
         <one-to-many
            class="com.tylernet.smartwerks.common.objects.sales.InvoicePayment" />
      </bag>


will not work unless we use the List type on our Vector... which makes for more stable java code(IMO), we are just trying to figure out how to get one or the other to kinda of meet in the middle.

Does anyone have an idea on where we should go with this. Surely Hibernate and AXIS had to of thought of this problem...or someone else has.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 03, 2008 10:54 pm 
Newbie

Joined: Wed Sep 27, 2006 2:26 pm
Posts: 6
Did you ever figure this out? I have run into the same problem with JAX-WS.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 12, 2008 12:55 am 
Newbie

Joined: Wed Jun 11, 2008 7:51 am
Posts: 8
I had the same problem. I used Spring + Hibernate with annotations. I was able to make it work with Vector list = new Vector() when i took out the contents of my mapped class(wrapped as @Entity) i used to retrieve data from the DB and dump them into a similar class(POJO)
If anybody knows a cleaner way to do this let me know.
Regards


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.