Skip to content

Bump mybatis-dynamic-sql from 1.3.0 to 1.4.1 in /orm/mybatis#46

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/gradle/orm/mybatis/org.mybatis.dynamic-sql-mybatis-dynamic-sql-1.4.1
Open

Bump mybatis-dynamic-sql from 1.3.0 to 1.4.1 in /orm/mybatis#46
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/gradle/orm/mybatis/org.mybatis.dynamic-sql-mybatis-dynamic-sql-1.4.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Oct 10, 2022

Bumps mybatis-dynamic-sql from 1.3.0 to 1.4.1.

Release notes

Sourced from mybatis-dynamic-sql's releases.

MyBatis Dynamic SQL Release 1.4.1

This maintenance release includes a few new features and one important change.

The next release of the library will be version 1.5.0 and we will remove all deprecated code in that release.

Potentially Breaking Change

The library will now throw a NonRenderingWhereClauseException if a where clause is coded in any statement, but fails to render because all optional conditions have been dropped. We have made this change out of an abundance of caution to prevent statements that accidentally impact all rows in a table (for example, a delete statement could delete all rows in a table).

The default behavior can be modified either through global configuration, or on a statement by statement basis. Please see the documentation page about library configuration for details here: https://mybatis.org/mybatis-dynamic-sql/docs/configuration.html.

New Features

  1. Improve the arbitrary grouping in where clauses - virtually any where clause should now be possible
  2. Add the ability to specify a table alias on delete and update statements - this improves those statements by allowing a correlated sub query
  3. Some minor updates to the Kotlin DSL
  4. Added some checks for invalid SQL
  5. Standardized all exceptions thrown by the library to be either DynamicSqlException or some subclass of DynamicSqlException

The full list of changes is available here: https://github.com/mybatis/mybatis-dynamic-sql/issues?q=milestone%3A1.4.1+

Please read the full release notes for details: https://mybatis.org/mybatis-dynamic-sql/docs/CHANGELOG.html

All artifacts are available in Maven central under these coordinates:

<dependency>
  <groupId>org.mybatis.dynamic-sql</groupId>
  <artifactId>mybatis-dynamic-sql</artifactId>
  <version>1.4.1</version>
</dependency>

MyBatis Dynamic SQL Release 1.4.0

This release includes the following enhancements:

  1. Add support for arbitrary grouping of conditions in a where clause, and "not" conditions. Any where clause should be possible with this change.
  2. Improvements to table alias calculation that will make sub queries in where clauses easier
  3. Removal of some deprecated code
  4. Major update to Kotlin DSL:
    • The where clause DSL is rewritten and more closely matches native SQL
    • Kotlin where clauses also support arbitrary grouping and "not" conditions
    • All insert statements now have native Kotlin builders
    • Many other small improvements using Kotlin DSL building functions

With this release, the Kotlin DSL is very close to native SQL. It is awesome - give it a try!

All artifacts are available in Maven central under these coordinates:

</tr></table> 

... (truncated)

Changelog

Sourced from mybatis-dynamic-sql's changelog.

Release 1.4.1 - October 7, 2022

GitHub milestone: https://github.com/mybatis/mybatis-dynamic-sql/issues?q=milestone%3A1.4.1+

Potentially Breaking Change

In this release we have changed the default behavior of the library in one key area. If a where clause is coded, but fails to render because all the optional conditionals drop out of the where clause, then the library will now throw a NonRenderingWhereClauseException. We have made this change out of an abundance of caution. The prior behavior would allow generation of statements that inadvertently affected all rows in a table.

We have also deprecated the "empty callback" functions in the "in" conditions in favor of this new configuration strategy. The "empty callback" methods were effective for "in" conditions that failed to render, but they offered no help for other conditions that failed to render, or if all conditions fail to render - which is arguably a more dangerous outcome. If you were using any of these methods, you should remove the calls to those methods and catch the new NonRenderingWhereClauseException.

If you desire the prior behavior where non rendering where clauses are allowed, you can change the global configuration of the library or - even better - change the configuration of individual statements where this behavior should be allowed.

For examples of global and statement configuration, see the "Configuration of the Library" page.

Other Changes

  1. Added support for criteria groups without an initial criteria. This makes it possible to create an independent list of pre-created criteria and then add the list to a where clause. See the tests in the related pull request for usage examples. (#462)
  2. Added the ability to specify a table alias on DELETE and UPDATE statements. This is especially useful when working with a sub-query with an exists or not exists condition. (#489)
  3. Updated the Kotlin DSL to use Kotlin 1.7's new "definitely non-null" types where appropriate. This helps us to more accurately represent the nullable/non-nullable expectations for API method calls. (#496)
  4. Added the ability to configure the library and change some default behaviors. Currently, this is limited to changing the behavior of the library in regard to where clauses that will not render. See the "Configuration of the Library" page for details. (#515)
  5. Added several checks for invalid SQL (#516)
  6. Added documentation for the various exceptions thrown by the library (#517)
  7. Update the "insertSelect" method in the Kotlin DSL to make it consistent with the other insert methods (#524)

Release 1.4.0 - March 3, 2022

The release includes new functionality in the Where Clause DSL to support arbitrary grouping of conditions, and also use of a "not" condition. It should now be possible to write any type of where clause.

Additionally, there were significant updates to the Kotlin DSL - both to support the new functionality in the where clause, and significant updates to insert statements. There were also many minor updates in Kotlin to make more use of Kotlin language features like infix functions and operator overloads.

GitHub milestone: https://github.com/mybatis/mybatis-dynamic-sql/issues?q=milestone%3A1.4.0+

... (truncated)

Commits
  • ef3769e [maven-release-plugin] prepare release mybatis-dynamic-sql-1.4.1
  • 24e4832 Update Release Date
  • 727dec6 Merge pull request #540 from mybatis/renovate/test.containers.version
  • 64b9cb6 Update test.containers.version to v1.17.5
  • 6647a9a Merge pull request #539 from mybatis/renovate/ch.qos.logback-logback-classic-1.x
  • 9b15c2d Update dependency ch.qos.logback:logback-classic to v1.4.3
  • c0a6a69 Merge pull request #538 from mybatis/renovate/test.containers.version
  • 88aee81 Update test.containers.version to v1.17.4
  • bb96f41 Merge pull request #537 from mybatis/renovate/kotlin.version
  • 2eabb48 Update kotlin.version to v1.7.20
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mybatis-dynamic-sql](https://github.com/mybatis/mybatis-dynamic-sql) from 1.3.0 to 1.4.1.
- [Release notes](https://github.com/mybatis/mybatis-dynamic-sql/releases)
- [Changelog](https://github.com/mybatis/mybatis-dynamic-sql/blob/master/CHANGELOG.md)
- [Commits](mybatis/mybatis-dynamic-sql@mybatis-dynamic-sql-1.3.0...mybatis-dynamic-sql-1.4.1)

---
updated-dependencies:
- dependency-name: org.mybatis.dynamic-sql:mybatis-dynamic-sql
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants