Hello,

This usually happens when you upgrade your runtime dependency, but not your
code generator dependency. The generated code was generated with version
3.8.5, which does not yet include the new methods required for the 3.9.1
runtime dependency.

Hope this helps,
Lukas

2017-03-05 1:46 GMT+01:00 <[email protected]>:

> Hi ,
>
> I have created a Enum Type on Postgres  :
>
>
> CREATE TYPE discipline AS ENUM (
>  'PLAT',
>  'ATTELE',
>  'HAIE',
>  'STEEPLECHASE',
>  'MONTE',
>  'CROSS');
>
>
>
> Joog generated the following class that failed to compile :
>
> *com.donpinna.turf.jooq.enums.Discipline is not abstract and does not 
> override abstract method getCatalog() in org.jooq.EnumType*
>
> /**
>  * This class is generated by jOOQ
>  */
> package com.donpinna.turf.jooq.enums;
>
>
> import com.donpinna.turf.jooq.Public;
>
> import javax.annotation.Generated;
>
> import org.jooq.EnumType;
> import org.jooq.Schema;
>
>
>
>
> /**
>  * This class is generated by jOOQ.
>  */
> @Generated(
>  value = {
>  "http://www.jooq.org";,
>  "jOOQ version:3.8.5"
>  },
>  comments = "This class is generated by jOOQ"
> )
> @SuppressWarnings({ "all", "unchecked", "rawtypes" })
> public enum Discipline implements EnumType {
>
>  PLAT("PLAT"),
>
>  ATTELE("ATTELE"),
>
>  HAIE("HAIE"),
>
>  STEEPLECHASE("STEEPLECHASE"),
>
>  MONTE("MONTE"),
>
>  CROSS("CROSS");
>
>  private final String literal;
>
>  private Discipline(String literal) {
>  this.literal = literal;
>  }
>
>  /**
>  * {@inheritDoc}
>  */
>  @Override
>  public Schema getSchema() {
>  return Public.PUBLIC;
>  }
>
>  /**
>  * {@inheritDoc}
>  */
>  @Override
>  public String getName() {
>  return "discipline";
>  }
>
>  /**
>  * {@inheritDoc}
>  */
>  @Override
>  public String getLiteral() {
>  return literal;
>  }
> }
>
>
> I'm using jooq version 3.9.1.
> Any help would be appreciate .
>
> Thanks
>
> --
> 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