-->
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.  [ 6 posts ] 
Author Message
 Post subject: Hibernate and Apache Axis
PostPosted: Fri Jun 11, 2004 2:23 pm 
Newbie

Joined: Fri Jun 11, 2004 2:01 pm
Posts: 3
Hi hibernators....


Trying to integrate Web Services in my Hibernate-Spring based project I meet a problem by using Apache Axis as Web Service framework. My intention is not to provide a DTO layer, just inject POJO's domain object to the client.

I'm using Java2WSDL to generate WSDL from hibernated POJO's. Then, I use WSDL2Java to provide se/deserializers to the POJO's in an ant task. This schema works well.

The problem is that custom SOAP spec not supports Set collections mapped in POJO's (in one-to-many relations), just only typed Arrays.

Have I to write DTO's with typed arrays??? they would be the same as POJO's domain objects with typed arrays instead Set collections!!!!

Other solutions?

Thanks in advance.....

Jose Manuel


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 12, 2004 4:46 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
why don't you map your to-many relationship as an array?
<array name="foos" table="BAR_FOOS" cascade="all">
<key column="BAR_ID"/>
<index column="I"/>
<many-to-many column="FOO_ID" class="org.hibernate.Foo"/>
</array>

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 14, 2004 6:05 am 
Newbie

Joined: Fri Jun 11, 2004 2:01 pm
Posts: 3
thank you anthony

I have to look in hibernate documentation more frequently....
I didn't know the existence of array mapping type in hibernate...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 08, 2004 2:10 am 
Regular
Regular

Joined: Tue Sep 30, 2003 11:27 am
Posts: 60
Location: Columbus, OH, USA
Jose, I'm curious - how are you handling the disconnected state of the Hibernate POJOs once they are SOAPed across the wire? Have you left lazy instantiation turned off? I'm getting ready to implement a SOAP transport on top of a Hibernate-fronted persistence store next month and could use any tips you have to share. TIA,
Scott


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 16, 2004 7:08 pm 
Newbie

Joined: Fri Jun 11, 2004 2:01 pm
Posts: 3
smccrory,

I believe that we are forced not to use lazy loading when implement the Web services layer mapping collections with "array". If you inspect hibernate mapping dtd, you can see that
array mapping collection hasn't "lazy" attribute supported.

In my project I send and receive all the graph object on request. I not have implement any "request data on demand" strategy.

I hope this help you....

Jose Manuel

PD: sorry by this delayed response


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 16, 2004 7:18 pm 
Regular
Regular

Joined: Tue Sep 30, 2003 11:27 am
Posts: 60
Location: Columbus, OH, USA
Thanks for the reply! Yea, I think we're going to go that route as well.
Scott


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