|
Torque does code-gen as well. This was before any fancy tools so we basically just had hand generated DDL. https://db.apache.org/torque/torque-4.0/documentation/orm-re... Regen, then fix compile issues. Thats how I used it a long long (10 years?) time ago. jOOQ DSL is nice, this is just as readable(ABC is a generated class) Criteria crit = new Criteria()
.where(ABC.A, 1, Criteria.LESS_THAN)
.and(ABC.B, 2, Criteria.GREATER_THAN)
.or(ABC.A, 5, Criteria.GREATER_THAN);
Working with XML, not the nicest thing, i do agree, but also not the worst thing.Not a flag-bearer in any way, but I just wanted to point out that if code-gen db access is your thing, there are also other tools to consider. It most certainly had its warts. Like issues handling complicated joins. Or more seriously, whos maintaining it. Its been a long time since i've look at it with any seriousness, not sure if they have fixed them or not. edit: formatting |