diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d5e73fc..5dd9d084 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [6.0.0] - 2023-07-01 -### Added +### ⭐ Added #### Second-Level Caching @@ -17,13 +17,13 @@ The extension will now throw an error if you try to configure an unsupported cac #### Hibernate Logging -This version re-enables Hibernate logging via SLF4j and LogBack. Hibernate root and cache loggers are defaulted to `WARN` level at ORM init/reload time, while SQL logging is set to `DEBUG` if `this.ormSettings.logSQL` is enabled. (Set to `true`.) +This version re-enables Hibernate logging via SLF4j and LogBack. Hibernate root and cache loggers are defaulted to `ERROR` level, while SQL logging is set to `DEBUG` if `this.ormSettings.logSQL` is enabled. (Set to `true`.) #### OWASP Dependency CVE Scans -The extension [GitHub Release page](https://github.com/Ortus-Solutions/extension-hibernate/releases/latest) now generates a dependency CVE report via [Jeremy Long's OWASP dependency-check maven plugin](https://jeremylong.github.io/DependencyCheck/index.html). Any known CVEs contained in dependencies ( excluding `test` and `provided`-scoped dependencies) will be noted in [each release's CVE report artifact](https://github.com/Ortus-Solutions/extension-hibernate/releases/download/latest/dependency-check-report.html). +The extension [GitHub Release page](https://github.com/Ortus-Solutions/extension-hibernate/releases/latest) now generates a dependency CVE report via [Jeremy Long's OWASP dependency-check maven plugin](https://jeremylong.github.io/DependencyCheck/index.html). Any known CVEs contained in dependencies ( excluding `test` and `provided`-scoped dependencies) will be noted in [each release's CVE report artifact](https://github.com/Ortus-Solutions/extension-hibernate/releases/download/latest/owasp-cve-report.html). -### Changed +### ♻️ Changed #### New Repo Layout @@ -46,16 +46,16 @@ We re-architected the build to inline most dependencies. I.e. we no longer copy #### Other -- The `"node"` attribute is deprecated in Hibernate 5.x, and has been removed from our `hbml.xml` files to avoid constant Hibernate warning logs. +- The `"node"` attribute is deprecated in Hibernate 5.x, and is no longer generated on HBM/XML mapping files to avoid Hibernate warning that "Use of DOM4J entity-mode is considered deprecated". -### Fixed +### 🐛Fixed - The `.fld` definition file for all built-ins was missed during the conversion to a Maven build. (Since [v5.4.29.25](https://github.com/Ortus-Solutions/extension-hibernate/releases/tag/v5.4.29.25)). This caused the `orm*()` and `entity*()` built-in method calls to be picked up by Lucee core before being routed to this extension. No known errors resulted from this mistake, but we feel embarrassed anyway. 😅 - Clear ORM context data once per ORM reload, not once per ORM entity parsing. This should improve ORM startup/reload time and avoid difficult session or cache manager lifecycle issues. ## [5.4.29.28] - 2023-06-07 -### Fixed +### 🐛 Fixed We now set the JAXB `ContextFactory` system property based on the JRE version. If less than JRE 11, we set `javax.xml.bind.context.factory=com.sun.xml.bind.v2.ContextFactory`. If JRE 11 or greater, we set `javax.xml.bind.JAXBContextFactory=com.sun.xml.bind.v2.ContextFactory`. @@ -67,58 +67,58 @@ See [OOE-3](https://ortussolutions.atlassian.net/browse/OOE-3). ## [5.4.29.27] - 2023-05-29 -### Fixed +### 🐛 Fixed - We now set a `javax.xml.bind.context.factory=com.sun.xml.bind.v2.ContextFactory` System property to ensure the JAXB API can find its implementation in CommandBox environments. This may trigger a log message, but shouldn't cause any concern. Vanilla Tomcat installations _may_ need to overwrite or clear this property. [LDEV-4276](https://luceeserver.atlassian.net/browse/) ## [5.4.29.26] - 2023-05-24 -### Changed +### ♻️ Changed - Improved logo for Lucee admin 🤩 -### Fixed +### 🐛 Fixed - Entity changes made in `onPreInsert()` and `onPreUpdate()` do not persist [OOE-2](https://ortussolutions.atlassian.net/browse/OOE-2) ## [5.4.29.25] - 2023-05-23 -### Changed +### ♻️ Changed - Switched to Maven for a faster, more stable build process - Improved entity event listeners for a much speedier ORM startup ([8924b58a9058d296e2a783ccfabbf90e26dc9c1b](https://github.com/Ortus-Solutions/extension-hibernate/commit/8924b58a9058d296e2a783ccfabbf90e26dc9c1b)) - New and Improved logo for Lucee admin visibility ([10bdf56a7a78f0221ab1a6e66a5512a92819e5b7](https://github.com/Ortus-Solutions/extension-hibernate/commit/10bdf56a7a78f0221ab1a6e66a5512a92819e5b7)) -### Fixed +### 🐛 Fixed - Entity has no state when listener method (`onPreInsert`, for example) is fired ([014814263b5d31b8bac4c17479c2ca731ceb4e7c](https://github.com/Ortus-Solutions/extension-hibernate/commit/014814263b5d31b8bac4c17479c2ca731ceb4e7c), [OOE-1](https://ortussolutions.atlassian.net/browse/OOE-1)) ## [5.4.29.24] - 2023-05-17 -### Security +### 🔐 Security - Upgraded dom4j library from 1.6.1 to 2.1.4. This removes [two potential vulnerabilities](https://mvnrepository.com/artifact/dom4j/dom4j/1.6.1) in dom4j's XML parsing capabilities. ## [5.4.29.23] - 2023-05-15 -### Fixed +### 🐛 Fixed - ORMExecuteQuery ignores `"unique"` argument if `options` struct is passed ## [5.4.29.22] - 2023-05-11 -### Added +### ⭐ Added - Adds support for `autoGenMap=false` - [LDEV-3525](https://luceeserver.atlassian.net/browse/LDEV-3525) - Adds javadocs auto-published to [apidocs.ortussolutions.com](https://apidocs.ortussolutions.com/#/lucee/hibernate-extension/) -### Fixed +### 🐛 Fixed - ORM events not firing ([LDEV-4308](https://luceeserver.atlassian.net/browse/LDEV-4308)) - Session close on transaction end ([LDEV-4017](https://luceeserver.atlassian.net/browse/LDEV-4017)) - "length" not used on varchar fields ([LDEV-4150](https://luceeserver.atlassian.net/browse/LDEV-4150)) -### Changed +### ♻️ Changed - Dramatic improvements in initialization performance - Cuts ORM reload time by 60%