[XDoclet] Many-To-Many Relationship

Hello.

I have a little problem.

Imagine that you have a class named A.

A' extends A and A" extends A.

Now, you have a class named B.

There's a many-to-many relationship between A' and B (A' to B) and a many-to-many relationship between A" and B (A" to B).

Giving A is the superclass of A' and A", there's a method in A called getBs().

So, my problem is that when I have to put XDoclet tags for getBs method, how can I do ? Actually, the problem is to put the @ejb:relation tag without put getBs() method in

A' and in A", because this method is inherited from A. So, I don't know what value I have to give to @ejb:relation's parameters such as name, role-name, target-role-name, etc.

Is there someone to help me ? (if someone understood what I have just said, of course ^__^)

[845 byte] By [Suppaman] at [2007-9-27 19:19:49]
# 1
I have just thought maybe I could put various @ejb-relation tags for getBs into A class...
Suppaman at 2007-7-6 21:59:01 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
No, it doesn't work : in ejb-jar.xml, the tag <relationship-role-source> is A whereas I want it to be A' or A"...Any idea ?
Suppaman at 2007-7-6 21:59:01 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...