Coder Social home page Coder Social logo

Comments (5)

lukaseder avatar lukaseder commented on June 16, 2024

Note that in vanilla jOOQ, you can configure all of these things, see:

from jooq-plugin.

elie321 avatar elie321 commented on June 16, 2024

I may be missing something.
I pinned jooq 3.16.6 in gradle.
Im unable to find any feature to enable generating serialVersionUID as hash for example or as constant on the org.jooq.meta.jaxb.Generate object.

from jooq-plugin.

lukaseder avatar lukaseder commented on June 16, 2024

I'm not affiliated with this plugin, just thought this might help. From the readme, I'd expect the generate content to be available via customizeGenerator?

See: https://github.com/revolut-engineering/jooq-plugin/blob/master/README.md

from jooq-plugin.

elie321 avatar elie321 commented on June 16, 2024

Yes, this is how I had a reference to the Generate object

tasks {
    generateJooqClasses {
        customizeGenerator {
            generate.examplePropertyName = exampleValue
        }
    }
}

to close the loop on this one, I was able to set the generatedSerialVersionUID via the withGroovyBuilder.
This is a decent work around.
I wasn't aware of this Groovy builder. But it seems like the Kotlin object doesn't expose certain properties? if that is the case , I feel like there's room for improvement (at least to enhance discoverability of these features/props).

tasks {
    generateJooqClasses {
        customizeGenerator {
            generate.examplePropertyName = exampleValue
            generate.withGroovyBuilder {
                setProperty("generatedSerialVersionUID", "HASH")
            }
        }
    }
}

Thank you! I appreciate your input and time.

from jooq-plugin.

monosoul avatar monosoul commented on June 16, 2024

You can do it like that:

tasks {
    generateJooqClasses {
        customizeGenerator {
            generate.generatedSerialVersionUID = org.jooq.meta.jaxb.GeneratedSerialVersionUID.HASH
        }
    }
}

Btw, this plugin seems to be abandoned, so I forked it and published it under a new group. It's available here: https://plugins.gradle.org/plugin/dev.monosoul.jooq-docker ( https://github.com/monosoul/jooq-gradle-plugin )

from jooq-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.