Hi there and Happy New Year to you too! Thanks for your feedback. Curiously, Serializable cannot be opted out from, even if I perfectly understand your use-case. We'll fix this in a future release: https://github.com/jOOQ/jOOQ/issues/4888
Right now, I suspect you'll need to patch org.jooq.util.GeneratorStrategyWrapper.getJavaClassImplements() and remove the relevant logic. Another option is to use a post-processing Maven or Gradle plugin, using which patch the generated code by removing "implements Serializable". E.g. by using the maven-replacer-plugin: https://code.google.com/p/maven-replacer-plugin Hope this helps. Best Regards, Lukas 2016-01-01 12:17 GMT+01:00 <[email protected]>: > Hi there guys (and Happy New Year!), > > As per the topic title, I'm using a generator strategy which implements > this > > @Override > List<String> getJavaClassImplements(Definition definition, > GeneratorStrategy.Mode mode) { > if (mode.equals(org.jooq.util.GeneratorStrategy.Mode.POJO)) { > //remove serialization implement > return null; > } else > return super.getJavaClassImpleme > > > Other overrides in the strategy works. *Overriding as the code above > however does not even generate the POJOs at all* (POJO generation without > this override does works beautifully). > > I'm currently using Gradle 2.8 with org.jooq:jooq-codegen:3.7.1 > dependencies. > > As for my reason to remove the Serializable interface: I wanted to share > the same generated pojos inside Android which prefers to implement > the Parcelable serialization interface instead (as Serializable on Android > is very slow and generally not recommended). > > Hence, may I know is this a bug or expected behavior? > > -- > 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.
