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.