Discussion:
[Middlegen-user] Code generation errors
Ed Ross
2003-06-18 16:53:07 UTC
Permalink
When a table name is the same as the primary key name, the code generation
causes errors

I have two tables
Patiients with the primary key of patient
Rxs with the primary key of Rx and foreign key of patient

When I generate the code, the RxBean has compile errors.

patient is first defined as to return the column value of patient
public abstract java.lang.Integer getPatient();

patient is also used to return the patient object
public abstract techrx.interfaces.PatientLocal getPatient();



(The same problem is encountered in the struts generation stuff, but I can
deal with those)

In the build.xml it states that we can specify the sinular and plural name
for the tables. I tried this, but the code generation process seems to
ignore these.



Any ideas on how to fix this?

Thanks



This E-mail message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply E-mail, and destroy all copies
of the original message.

Loading...