Make two tables "Points" and "Interval". Interval has two
attributes "Start_Point" and "End_Point", which point to
rows in table "Points".
Now run Middlegen EJB-generator. It generates duplicate
getters and setters getPoints, setPoints. The resulting
code doesn't compile because there are duplicate
methods with same signature.
To fix this, Middlegen should not produce duplicate
methods, but use some renaming scheme when naming
conflicts arise.
I had this problem with Middlegen 2.0.
Logged In: YES
user_id=918139
I have fixed this problem by changing the cmp20 template.
There is an error in there which caused duplicate methods to
be created.
I needed I can provide you with the fix.
Logged In: YES
user_id=1361952
I had the SAME problem.... When you have two or more foreign
keys from the same table, middlegen dont compile.
Logged In: YES
user_id=1501269
Hi wgboers,
I'm new to middlegen but am having exacty the problem
described here. Could you please post the changes that you
had to make to the cmp template in order to fix this
problem. Also, where do i find this file?! Cheers,
Monkey