I'm getting the following compilation error with the latest
changes to the PK stuff:
compile:
[javac] G:\head\SONDAframe\bin\src\com\bice\Bpinfo.java:324: Methods
can't be redefined with a different return type: java.lang.Object getId()
was int getId()
[javac] public Object getId()
[javac] ^
[javac] 1 error
This is a class generated with Torque, and it has two getId()
methods:
public int getId()
public Object getId()
The corresponding table has a primary key made of two columns:
<table name="BPINFO">
<column name="ID" required="true" primaryKey="true" type="INTEGER"/>
<column name="SEQ" required="true" primaryKey="true" type="INTEGER"/>
...
</table>
Should I change anything in my schema definition? The compilation
error seems pretty definite to me... Perhaps it is a mistake to
have a column named ID? In fact, if I change that column's name
to GONZO, the error goes away. Isn't this an artificial limitation?
--
Gonzalo A. Diethelm
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]