Hello Patrik,

jOOQ requires Java 6 to run. In Java 5, the @Override annotation could only
be used for actual method overriding, not implementations of interface
methods. That semantics was changed in Java 6.

Even if you may be using Java 6 to compile your program, make sure that you
also set your Java compiler to use 1.6 source compatibility.

Best Regards,
Lukas


2014-09-07 17:05 GMT+02:00 <[email protected]>:

> Hello,
>
> after generating some records from the schema the generated code won't
> compile....
>
> -----------------
> public class MachineRunsRecord
> extends
>
> org.jooq.impl.UpdatableRecordImpl<hello.database.tables.records.MachineRunsRecord>
> implements
> org.jooq.Record4<java.lang.Integer, java.lang.String, java.sql.Timestamp,
> java.sql.Timestamp> {
>
> ..........
> @Override
> public org.jooq.Field<java.lang.Integer> field1() {
> return hello.database.tables.MachineRuns.MACHINE_RUNS.ID;
> }
>
> field1 : "The method field1() of type MachineRunsRecord must override a
> superclass method"
> -----
>
> but in
>
> ------
> @Generated("This class was generated using jOOQ-tools")
> public interface Record4<T1, T2, T3, T4> extends Record {
>
>     /**
>      * Get the first field.
>      */
>     Field<T1> field1();
> --------
> The field appears to be there. The Compiler complains that it can't find
> it, T1 is java.lang.Integer, so it should be available....
>
> Is this a configuration problem, or how can one fix that?
> Best,
> Patrik
>
>  --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to