Hi Lukas
Thanks again for your answers
So you like your XSD, I'm surprised but so be it. Let's postpone further
discussions on the topic until we can speak of it "IRL".
> Note, in your PrefixingGeneratorStrategy, you get a Definition argument,
which references a Database which might give you access to some other
resources you could use for a better workaround?
Thanks a lot, I dig into this one and... used:
database.withProperties(new
Property().withKey(VERSION_PROPERTY_KEY).withValue("v" + version)));
But then :
- there's no getter for the properties, I had to cast the Database like
this :
((AbstractDatabase)
definition.getDatabase()).getProperties().getProperty(LatestModelGenerator.VERSION_PROPERTY_KEY)
-- could you put getProperty in Database as well?
- I'm unsure about the side effects of adding such a property... Is it safe?
- if ever you've a better way...
> I'm afraid, I'm not too happy to implement such a workaround here. Any
additional protected method that exposes some of these internals is just as
good as a user actually patching the logic completely.
Somehow I was expecting this, as well as feeling selfish for asking ^^ Good
answer Sir!
> Note: A code generator overhaul is scheduled for version 4.0...
Ok, nice. And even the current one might do all I need in the end, even
better.
Cheers !
--
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.