Commit Graph

707 Commits

Author SHA1 Message Date
Yoann Rodière 07eca3883d HHH-14635 Upgrade to log4j 2 2021-05-26 09:05:56 +02:00
Christian Beikov ff9e9eebc9 HHH-13946 Create Jakarta artifacts for hibernate-core, hibernate-envers, hibernate-jpamodelgen and hibernate-testing 2021-04-30 11:41:05 +02:00
Yoann Rodière 4264bc55ac HHH-14563 Remove the DOM4J dependency from hibernate-core 2021-04-19 15:39:35 +02:00
Yoann Rodière b076216e84 HHH-14563 Remove XmlMappingOptions
We don't need that anymore: XML mapping is either enabled or disabled,
there are no other options. So a boolean will do.
2021-04-19 15:39:35 +02:00
Yoann Rodière 8ab3a2f7e9 HHH-14529 Configuration and wiring to prefer JAXB over DOM4J for orm.xml handling 2021-04-15 14:01:28 +02:00
Steve Ebersole 725faa258f HHH-14509 : Git master -> main branch renaming 2021-03-19 10:59:03 -05:00
Christian Beikov 15caff9cbc Fix PostgreSQL cleanup wrt extensions, fix Oracle cleanup wrt sys objects, always drop id tables in tests, fix global temp table tests, add on commit delete rows for hana dialects 2021-02-10 09:30:48 +01:00
Christian Beikov 1983123d72 Use a shared connection provider for most tests to reduce test time significantly 2021-02-03 17:03:47 +01:00
Christian Beikov 08d9fe1a3b Add cleaners for clearing a schema the first time before running a test 2021-02-03 17:03:47 +01:00
Christian Beikov d767d46d05 Fix most tests to work on all DBs and fix a bunch of connection leaks 2021-02-03 17:03:47 +01:00
Sanne Grinovero 92bca8f4f1 HHH-14356 Have Hibernate Envers produce a user friendly bootstrap exception if xml_mapping_enabled=false 2020-12-14 16:31:15 +00:00
Christian Beikov c3eaa7cf30 HHH-13945 Fix issues on PostgreSQL 2020-11-23 14:44:51 +01:00
Luke Chen e3a9ee61f2 HHH-13945: add debug log during exception thrown 2020-11-23 13:52:19 +01:00
Luke Chen 2404ff56ab HHH-13945: catch PersistenceException during envers unproxy the field value, and fallback to using proxy entity 2020-11-23 13:52:19 +01:00
Luke Chen 2228bd238e HHH-13945: fallback to call map if exception thrown 2020-11-23 13:52:19 +01:00
Sanne Grinovero 503c48cbc7 HHH-14290 Remove capability of loading classes by name from HCANN 2020-10-27 07:13:02 +00:00
Sanne Grinovero 8f1873121e HHH-10715 Use the more efficient iterators 2020-10-25 21:33:26 +00:00
Sanne Grinovero 6da11f4c2a HHH-14137 Some more string check performnance optimisations 2020-08-06 18:22:25 +02:00
Ihar Sadounikau 0ee25a416d HHH-14137 Empty String check performance improvements 2020-08-06 17:14:33 +02:00
Rafi Shamim 4655bdbe12 HHH-13724 Add CockroachDB dialects and configs for testing 2020-07-27 12:49:40 +01:00
Sanne Grinovero 629f847b7c HHH-14096 Transform the XMLHelper copy for Envers into a private internal utility 2020-07-07 09:37:47 +01:00
Sanne Grinovero 694b5ecaad HHH-14096 Adapt the Hibernate Envers module to use its private copy of XMLHelper 2020-07-07 09:37:47 +01:00
Andrea Boriero b897a36f2f Fix issue with generated pom missing project description 2020-04-06 18:21:11 +01:00
Chris Cranford e9f2c02140 HHH-13886 Revert behavior changes introduced by HHH-10844 2020-04-02 11:50:22 -04:00
Yoann Rodière 2f32169249 HHH-13689 Replace uses of the deprecated osgi plugin with the biz.aQute.bnd plugin
https://docs.gradle.org/5.0-milestone-1/release-notes.html#deprecated-osgi-plugin
2020-04-01 10:54:56 -05:00
Chris Cranford 38f0131160 HHH-10844 Resolve columnDefinition to appropriate sql-type for audit mappings 2020-01-27 13:18:16 +00:00
Chris Cranford c02a703b17 HHH-6615 Minor format changes 2020-01-27 12:53:27 +00:00
Chris Cranford f4abc09854 HHH-6615 Throw AuditException when generated revision number is negative. 2020-01-27 12:53:27 +00:00
Chris Cranford 8c52eb2eae HHH-13770 Fix modified columns being populated with null values 2020-01-27 12:33:59 +00:00
Chris Cranford b3ea1d67c4 HHH-13760 Code formatting changes & suggested logic simplification 2020-01-27 12:12:23 +00:00
Chris Cranford d1b32d2b65 HHH-13760 Code formatting changes & suggested logic simplification 2020-01-27 12:12:23 +00:00
Chris Cranford 92bd6f89dd HHH-13760 Fix ClassCastException when Envers inserts audit rows that use lazy many-to-one mappings 2020-01-27 12:12:23 +00:00
Davide D'Alto c4dc9b0d25 HHH-13704 Make javassist a compile time dependency again
This commit revert some of the changes so that we can release it in a micro
  without breaking application using Javassist.

  In the next minor it should be reverted.
2019-12-13 11:29:40 +00:00
Davide D'Alto 921b1fe67f HHH-13704 No need to exclude javassist in the envers module 2019-12-12 13:50:01 +00:00
Chris Cranford 72b81eebfe HHH-12965 Avoid creating foreign keys between audit and main tables
* Added test case
2019-10-28 14:21:56 +00:00
Chris Cranford b28c7b0761 HHH-12965 Avoid creating foreign keys between audit and main tables
* Fixes a corner case not addressed by HHH-10667
* Avoids creating foreign-key constraints for any many-to-one
2019-10-28 14:21:56 +00:00
Yoann Rodière 250f569339 HHH-13666 Clarify that existing BeforeCompletion/AfterCompletion tests are about JTA only 2019-10-17 15:54:16 +02:00
Chris Cranford d95c16e9ab HHH-13655 Fix NullPointerException for audited MapKeyEnumerated collections with basic value types 2019-10-04 19:28:20 -04:00
Chris Cranford b606759e61 HHH-10398 Allow MOD column naming to be driven by a strategy
* Fixed javadoc comments
* Various code suggested code changes from review
2019-10-01 10:38:57 -04:00
Chris Cranford f78877a607 HHH-10398 Allow MOD column naming to be driven by a strategy
* Fixes OSGI integration with missing service lookup registration
2019-10-01 10:38:57 -04:00
Chris Cranford 3ecdd860a3 HHH-10398 Allow MOD column naming to be driven by a strategy
In the past the MOD columns were constructed based on the property name,
therefore if users specified a @Column/@JoinColumn like annotation and
changed the underlying schema column, the MOD column would continue to
be derived based on the property name.

This enhancement introduces a new ModifiedColumnNamingStrategy SPI that
comes with two implementations, a default/legacy mode that maintains
the prior naming model and an improved mode that will derive the MOD
name based on the naming strategy ORM used to derive the column name.
2019-10-01 10:38:57 -04:00
Chris Cranford 4b8c81908c HHH-11797 Add support for @MapKeyEnumerated mappings 2019-09-30 09:25:17 +01:00
Andrea Boriero ea301a7084 HHH-13564 - Fix EmbeddedIdGenericsTest failures on Oracle and MariaDB 2019-09-02 14:02:47 +01:00
Chris Cranford 5c95096e7c HHH-13564 - Fix NullPointerException for audited entity with embedded-id
in mapping superclass that makes use of generics.
2019-08-23 15:04:52 -04:00
Chris Cranford 14f7b49b79 HHH-13500 Fix audit strategy sub-query return incorrect results
In order to maintain backward compatibility with long-standing behavior,
this introduces a new configuration option which can be toggled to have
AuditReader#find implementations adhere to returning an exact match on
revision-number rather than one which is less-than or equal-to the
provided argument.

So a new configuration option org.hibernate.envers.find_by_revision_exact_match
provides users with the ability to be able to force this new behavior
while allowing legacy behavior to remain the default.
2019-07-22 16:34:19 -04:00
Sanne Grinovero 2e81c32265 HHH-13465 Allow inlined access to the PersistenceContext for internal methods 2019-06-28 12:00:39 +01:00
Gail Badner 6fba4c1035 HHH-13285 : ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory after dom4j update 2019-02-25 12:20:36 -08:00
wonwoo 69af6caa95 HHH-13265 - Remove double semicolon 2019-02-14 09:00:08 +02:00
Chris Cranford 67ec2d07cc HHH-13080 - EntityExistException when audited collection updated with detached entities. 2019-01-16 09:27:35 -05:00
Chris Cranford fc8f6871fd HHH-13080 - Added test case. 2019-01-16 09:27:35 -05:00