[JBossWS] - Re: Mapping Problems
by elcapitan
Thanks for the reply. I seem to have solved my problem by integrating the wstools-generated stubs into the client and placing the jaxrpc-mapping.xml file in the classpath.
I have to say, I found it very difficult to locate the information you specified in the user-guide - in particular, I had difficulty working out which methods applied to which releases of JBoss, and which EJB version. As I look through Chapter 12 of the JBoss 4 AS Guide, none of this is clearly spelled out - the jaxrpc-mapping.xml file is mentioned tangentially in a couple of code fragments, and nowhere beyond that. The JBossWS user guide isn't really any easier to find information in.
I'm not suggesting that the information isn't there, at least in some form - however, as a relatively experienced Java developer with a higher-than-average level of skill in English comprehension, I'm concerned that many other people will have similar problems in locating it. Is a documentation overhaul in the pipe at some stage?
Let me know if I can help you out with this. :) Thanks again for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993631#3993631
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993631
19 years, 4 months
[EJB 3.0] - ManyToMany Relationship
by deano
Hey guys,
We have a scenario where our manytomany table is not simply two foreign id's. basically we have an entity that has (many) relationships to itself.
ie an ITEM object may have many associated ITEM, defined by relationship_type
so (* is PK, ^ is FK)
ITEM(id*, name ...)
ITEM_RELATIONSHIP(fromItemID*^, toItemID*^, relationship_type*)
so for any item, we can have many related items, and each related item has a relationship_type(ie. child, sibling etc)
So the following will return all items related, and i want to return only those with relationship_type = 'CHILD'
@ManyToMany(cascade = CascadeType.ALL,
| fetch = FetchType.LAZY)
| @JoinTable(name = "item_relationship",
| inverseJoinColumns = {@JoinColumn(name = "toItemId")},
| joinColumns = {@JoinColumn(name = "fromItemId")})
| getChildRelationships()
hope it makes sense :) any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993626#3993626
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993626
19 years, 4 months