[jboss-user] [JBossWS] - Using entities with collections?

sbalmos do-not-reply at jboss.com
Sun Jul 30 22:04:43 EDT 2006


Hi all,

In 1.0.2, the WSDL generator now ignores datatypes that are collections. This was easy enough to fix with my wrapper SOAP interface. However, the complex datatypes that I return from my functions are entity beans, which themselves have member collections. I cannot replace these collections with arrays, since the EJB3 Persistence system needs collections to determine relationship mappings. And I can't create overridden getter methods in the entities that return arrays.

So, what am I supposed to do? On one hand, I must use collections in the entities for the persistence framework. Yet on the other hand, I can't for the SOAP framework. Am I supposed to create new wrapper entity datatypes for SOAP, which only use arrays? What about Map-type collections, where a flat array wouldn't really work?

Ideas are appreciated.

--Scott


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961750#3961750

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961750



More information about the jboss-user mailing list