You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "dave ." <va...@hotmail.com> on 2006/11/21 05:44:20 UTC
WSDL changes Java Set type to Object
Env: Axis 1.4, Hivernate 3.2, Struts 1.29
WSDL changes Set to Object. How can I convert (cast?) from Object to Set
when accessing rooms?
<hibernate-mapping
....
<set name="rooms" table="room" inverse="true" cascade="all-delete-orphan" >
<key column="property_id" on-delete="cascade"/>
<one-to-many class="Room" />
</set>
....
</hibernate-mapping>
====================================
the original code
public Set getRooms() {
return rooms;
}
public void setRooms(Set rooms) {
this.rooms = rooms;
}
This file was auto-generated from WSDL
public java.lang.Object[] getRooms() {
return rooms;
}
public void setRooms(java.lang.Object[] rooms) {
this.rooms = rooms;
}
=============================================
_________________________________________________________________
Off to school, going on a trip, or moving? Windows Live (MSN) Messenger lets
you stay in touch with friends and family wherever you go. Click here to
find out how to sign up! http://www.telusmobility.com/msnxbox/
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org