Please consider this section from the manual:
http://www.jooq.org/manual/META/AdvancedConfiguration/
It explains how you can customize generated artefacts.
Cheers
Lukas
2012/3/20 Agharta agharta <agha...@gmail.com>:
Hello Agharta,Please consider this section from the manual:
http://www.jooq.org/manual/META/AdvancedConfiguration/It explains how you can customize generated artefacts.
Cheers
Lukas
2012/3/20 Agharta agharta
> I've see the class DefaultGenerator and - at row 810 - it uses
You've discovered a bug at precisely that location. I'll file this as #1244:
https://sourceforge.net/apps/trac/jooq/ticket/1244
This will be fixed ASAP. Thanks for reporting this.
> without Mode parameter. It calls GeneratorStrategyWrapper, not my
> CustomGeneratorStartegy.
>
> Is it right? If yes, could you explain me how to set my custom name into
> code-class definition?
This is correct. The GeneratorStrategyWrapper is there to protect you
from common code-generation flaws. It implements
- method name disambiguation when tables have the same name as one of
their columns, like TABLE.TABLE
- method name disambiguation when getters are already present in the
class hierarchy, like TABLE.CLASS, which would generate an illegal
"getClass()" method.
- field name disambiguation when fields have the same name as Java
keywords, like TABLE.PUBLIC, which would generate an illegal "public"
field.
The GeneratorStrategyWrapper will ultimately call your own custom
strategy, though.
Cheers
Lukas
Fixed on SVN trunk and GitHub
> Another suggestion: what do you think about a nightly unstable build with
> not already released fixes/features?
> Or a continuos build like this: http://deadlock.netbeans.org/hudson/ for
> example.
I release unfrequent SNAPSHOT releases on the Sonatype Maven repository here:
https://oss.sonatype.org/content/repositories/snapshots/org/jooq/
Surely, Hudson/Jenkins would be a nice tool for automation. Do you
happen to know any hosting service for automated builds? It would be a
great plus if I could even run some of the integration tests, at least
those involving open source databases, such as Postgres, MySQL,
HSQLDB, H2, and Derby
> In this way, any user can download an unstable build to test it, without
> recompile it by hand. (i known, i'm a lazy man.... )
We're all lazy. I'd profit from automation just as much as you! :-)
Cheers
Lukas
We're all lazy. I'd profit from automation just as much as you! :-)
Surely, Hudson/Jenkins would be a nice tool for automation. Do you
happen to know any hosting service for automated builds?