Repository navigation
Releases
Releases · erioh/activejdbc-wrapper-project
1.2.0
What's Changed
- Next development version 1.1.1-SNAPSHOT by @erioh in #51
- Add fetchFirst() to the query builder by @erioh in #52
- Add fetchOne() and exists() to the query builder by @erioh in #53
- Set Automatic-Module-Name to activejdbc.wrapper by @erioh in #54
- Add readOnly and excludeFromEqualsAndHashCode column flags by @erioh in #55
- Check the processor in a Gradle build in CI; fix lost wrappers in incremental builds by @erioh in #57
- Add toBuilder() to generated wrappers by @erioh in #56
- Add column converters (ColumnConverter) by @erioh in #58
- Add a manually started release workflow by @erioh in #60
- Release workflow: use setup-java's non-deprecated *-env-var inputs by @erioh in #61
- README: the module name comes with 1.2.0 by @erioh in #62
Full Changelog: v1.1.0...v1.2.0
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.
Release of version 1.0.4
Fixes the critical bug in 1.0.3: column type strategies weren't found when the processor ran under javac/Maven, so every column fell back to the plain-cast accessors.