[jboss-user] [EJB 3.0] - mappedBy and WS
peiguo
do-not-reply at jboss.com
Thu May 29 15:57:40 EDT 2008
Two questions:
1) We are investigating sending JPA entities through WS. When the entity defines mappedBy, WS fails because mappedBy cause recursive when the engine tried to generate the XML. The most obvious way to resolve the problem, is to remove mappedBy, but is that the best way, any other ways?
2) A larger question, is it the best practice to send JPA entity over WS? Is there any risk of troubles? I see an logical argument against it: sending data object over WS is not the best practice, what should be send over is the business object.
Any thoughts?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154454#4154454
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154454
More information about the jboss-user
mailing list