I've encountered a tricky problem, where I just don't come further.
I have 3 Entity Beans with the following unidirectional relationships:
Bean1->Bean3 1:n
Bean2->Bean3 1:n
When I try to deploy the beans, I read this:
U:\..\Bean3_PM.java:9: Duplicate variable declaration:
int ___reverse_bean3_ID was int ___reverse_bean3_ID
public static final int ___reverse_bean3_ID = 1;
^
U:\..\Bean3_PMState.java:8: Duplicate variable declaration:
LocalBean2 _reverse_bean3 was LocalBean1 _reverse_bean3
public LocalBean2 _reverse_bean3;
^
2 errors
Compilation failed ...
When I look into the Bean3_PM.java there's the following:
public static final int ___reverse_bean3_ID = 0;
public static final int ___reverse_bean3_ID = 1;
In Bean3_PMState.java:
public LocalBean1 _reverse_bean3;
public LocalBean2 _reverse_bean3;
That means obviously, that the PM-files of Bean3 (which are created
during the deployment) have attributes, where the sources of the
relationships are recorded. But somehow it's done quite stupidly,
without changing the name of the attribute for the second
relationship.
Has anyone encountered a similar problem? Is this a bug or really
wanted? How can I avoid this problem? Any ideas?
Thanx,
-- Flo