Repository navigation
Release of version 1.1.0
New in generated wrappers
- Typed query builder:
FancyTableWrapper.query().firstName().eq("x").and(q -> q.amount().gt(TEN).or().activated().isNull()).fetch(), witheq,ne,gt,ge,lt,le,between,in,notIn,isNull,isNotNull,like/notLike, groups,asc()/desc(),limit/offset, andfetch()/fetchModels()/fetchCount(). Works with and without ActiveJDBC instrumentation (#36) - A constant per column, e.g.
FancyTableWrapper.FIRST_NAME, for raw SQL (#25) static wrap(Collection)to turn query results into wrappers (#26)- Enum columns, stored by name (#43)
byte[],java.util.Date,InstantandBigIntegercolumns (#15)- Static nested model classes (
Outer.Inner→Outer_InnerWrapper) (#24) and models in the default package (#17) activejdbc.wrapper.builder.method.prefixoption for builder method names (withFirstName(...))@Generatedon wrappers (#16), indented code (#29), members in annotation order (#14), readable arrays intoString(#28)- Gradle incremental compilation: the processor is declared isolating (#27)
Fixes
Booleangetters returnnullfor NULL columns instead offalse(#41)equals/hashCodecompareBigDecimalby value, so1.5equals1.50(#42)java.sql.Date,Time,LocalDateandLocalTimeproperties work onTIMESTAMPcolumns (Oracle) (#44)Clobcolumns no longer generate a call to a missinggetClob()(#40)- Problems in annotated classes are reported as compiler errors instead of crashing the processor or generating code that doesn't compile: unwrappable classes, invalid or duplicate property names, primitive types (#10, #13, #23)
toStringfix
Worth knowing when upgrading
Booleangetters can now returnnull, and wrappers withBigDecimalvalues that differ only in scale are now equal.- On JDK 23+ javac no longer runs processors found only on the classpath: enable it explicitly (see the README).
- The library is a runtime dependency, as before (wrappers extend
ActivejdbcWrapper); the query builder and the date/time getters use classes from it. - README has a new "Known limitations" section, mostly about Oracle (#45).
Requires Java 8+ and ActiveJDBC 2.2. Tested on JDK 8, 11, 17, 21, 25 and 27, H2, Oracle 23ai and Oracle XE 21c.