Chris Cranford
4e4f2e40b4
HHH-9432 Fix test failures
2021-12-17 18:43:20 -05:00
Chris Cranford
921a958e88
HHH-9432 Fix audit queries when `@Where` applied to discriminator mappings
2021-12-17 18:43:20 -05:00
Chris Cranford
9ace8a9dd3
HHH-13817 Support to-one relation traversals in RevisionsOfEntity queries
2021-12-17 18:31:10 -05:00
Chris Cranford
96e7d4cbb1
HHH-11573 Fix rebase issues
2021-12-17 18:30:09 -05:00
Chris Cranford
d263466dc0
HHH-11573 Moved test class
2021-12-17 18:30:09 -05:00
Chris Cranford
a408fa4597
HHH-11573 - Fix non-deterministic result ordering & test validation.
2021-12-17 18:30:09 -05:00
Chris Cranford
8d7562a314
HHH-11573 - Added todo wrt query context.
2021-12-17 18:30:09 -05:00
Chris Cranford
938b481cd9
HHH-11573 - Test case fixes.
2021-12-17 18:30:09 -05:00
Chris Cranford
6676a9c7bd
HHH-11573 - Fix javadoc typo.
2021-12-17 18:30:09 -05:00
Felix Feisst
1eec41a136
HHH-11573 Query based on type expressions
2021-12-17 18:30:09 -05:00
Chris Cranford
9c8eabcd95
HHH-11896 Fix test failures on Oracle
2021-12-17 00:54:42 -05:00
Chris Cranford
2e8d16efca
HHH-11896 Fix test to be deterministic
2021-12-17 00:54:42 -05:00
Felix Feisst
3e3d227c9a
HHH-11896 Support 'on-clause' criterion when traversing audit query relations
2021-12-17 00:54:42 -05:00
Chris Cranford
e07a8c3bd5
HHH-11895 Fix test to be deterministic
2021-12-17 00:53:19 -05:00
Felix Feisst
d9f3e82291
HHH-11895 Support traversal of components in audit query API
2021-12-17 00:53:19 -05:00
Chris Cranford
25421733d6
HHH-14981 Support null precedence with Envers Query API
2021-12-16 19:53:21 -05:00
Chris Cranford
057b9bfc04
HHH-11452 Fix test failures
2021-12-16 01:12:39 -05:00
Felix Feisst
e50037ec8c
HHH-11452 Added possibility to apply the like operator on a function criterion. Added possibility to use the id of an entity as function argument.
2021-12-16 01:12:39 -05:00
Felix Feisst
640bd85975
HHH-11452 Extended audit query API to specify the use of scalar
...
functions.
2021-12-16 01:12:39 -05:00
Felix Feisst
bb09222102
HHH-11735 Support traversal of to-many-associations in audit queries.
2021-12-16 01:10:08 -05:00
Chris Cranford
b384b37f39
HHH-8051 Gracefully handle not-found to-one associations
2021-12-16 01:05:27 -05:00
Gavin King
1172943252
fix broken float type precision conversion
...
it is not the case that ln(10) = log_2(10)
2021-12-13 13:56:17 +01:00
Steve Ebersole
1e4f1fef44
HHH-14950 - Support mapping of embeddables with no setters w/ custom instantiator
...
HHH-14964 - EmbeddableInitializer are called multiple times
HHH-14950 works for the most part, but cannot be used "for real" because of HHH-14964
2021-12-10 13:40:06 -06:00
Steve Ebersole
7a6cef5838
Miscellaneous
...
- Finished DialectVersion
- User Guide tidying
- User Guide section on AttributeBinder
2021-12-09 00:51:40 -06:00
Gavin King
2a2bf17f8f
redefine AttributeAccessor in terms of the new AttributeBinder API
2021-12-08 08:44:09 -05:00
Steve Ebersole
915da5228d
HHH-14497 - Drop legacy id-generator settings;
...
HHH-14718 - Drop deprecated generator implementations
2021-12-07 11:12:44 -06:00
Christian Beikov
6c4ec95182
* Cleanup temporary table handling in dialects
...
* Fix insert handling with respect to version, discriminator and generated identifier insertion
* Introduce SqmMultiTableInsertStrategy to handle multi-table inserts
* Introduce the notion of an "entity table" similar to the "id table" to handle multi-table insertions
* Implement table based and cte based multi-table insertion to support all dialects
* Implement identifier generator optimizer support for multi-table insert
* Fix validation of insert target paths against select item types
* Fix some DML validations
* Implement over-clause support in SQL AST
* Fix multi-valued filter parameter support
2021-12-07 15:54:01 +01:00
Yoann Rodière
495bd51caa
HHH-14921 Always use SqlStringGenerationContext for generation of SQL strings involving table/sequence names
2021-12-07 08:25:50 +01:00
Yoann Rodière
b6f833441a
HHH-14921 Delay generation of SQL strings by identifier generators until schema export or session factory creation
2021-12-07 08:25:50 +01:00
Yoann Rodière
16524e2f67
HHH-14921 Remove a few unused SQL generation methods in identifier generators
...
They are getting in the way of changes related to the default schema
2021-12-07 08:25:50 +01:00
Christian Beikov
47416b9e24
Fixup review comments
2021-12-02 13:17:53 +01:00
Steve Ebersole
b23c2f48c1
Introduce `VirtualIdEmbeddable` and `IdClassEmbeddable` + instantiators
...
- Clean up Component Type, removing as many calls to its tuplizer as possible atm
- Clean up ManagedMappingType, EntityPersister, etc - mainly work around getting and setting value(s)
Still need to
- integrate embedded forms. `VirtualIdEmbeddable` does not really need it as it can use the id-mapping itself as the embedded form. But `IdClassEmbedded` should really be integrated
- integrate `VirtualKeyEmbeddable` and `VirtualKeyEmbedded` for use as inverse composite fks
- share `#finishInit` handling for `EmbeddableMappingType`, `VirtualIdEmbeddable` and `IdClassEmbeddable`
- ability to use the containing composite owner as the parent of a composite (legacy behavior is to always use the "first" entity
- clean up ComponentType, esp wrt its use of ComponentTuplizer
2021-12-01 11:33:03 -06:00
Andrea Boriero
1589686608
Fix envers test failure with Sybase
2021-11-29 12:38:59 +01:00
Chris Cranford
11f40dbf8b
HHH-9228 HHH-9229 Shorten table names to try and fix CI failures
2021-11-28 16:57:21 -05:00
Chris Cranford
dd8f1a31a7
HHH-9062 Fix failing tests
2021-11-27 05:49:47 -05:00
Chris Cranford
6c1db681fe
HHH-13395 Fix sourcing of service registry
2021-11-27 05:22:35 -05:00
Chris Cranford
3575903139
HHH-13395 Use the new Integrator signature
2021-11-27 04:55:59 -05:00
Chris Cranford
dbecdc41ac
HHH-9062 Allow validity audit strategy to store revision end timestamps on joined subclass audit tables.
2021-11-27 04:41:52 -05:00
Chris Cranford
9124fd84b4
Fix HBM joined-subclass key order by sorting
2021-11-27 02:36:29 -05:00
Chris Cranford
26c3a1f32b
HHH-12077 Support short-naming of audit strategies
2021-11-26 02:20:28 -05:00
Chris Cranford
f379d51504
HHH-9228 HHH-9229 Fix audited/auditoverride for embeddables and mappedsuperclass
2021-11-26 02:20:28 -05:00
Chris Cranford
205f0ce9bf
HHH-6210 Added config option to allow revend timestamp fields to be long data types
2021-11-26 02:20:28 -05:00
Chris Cranford
1abf044f2e
HHH-10496 Allow RevisionTimestamp to be java.time.LocalDateTime
2021-11-26 02:20:28 -05:00
Chris Cranford
267a1cdb46
HHH-10912 Only run with default audit strategy
2021-11-26 02:20:28 -05:00
Chris Cranford
5ccaba123b
HHH-10925 Allow ignoring tests based on strategy
2021-11-26 02:20:28 -05:00
Chris Cranford
85388ec48f
HHH-11469 Remove deprecated ModificationStore
2021-11-26 02:20:28 -05:00
Chris Cranford
e513453aa4
HHH-11483 Build Envers model using JAXB
2021-11-26 02:20:23 -05:00
Andrea Boriero
088baa6e86
Fix compilation errors after merge
2021-11-16 17:35:44 +01:00
Andrea Boriero
8c5adc86d0
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_main_1
2021-11-16 17:23:06 +01:00
Chris Cranford
e155fc551e
HHH-14540 Don't share session-scoped interceptors with temp session
2021-11-16 15:27:51 +00:00
Jan Schatteman
db12d5a17a
Remove deprecated JPA_METAMODEL_GENERATION and JPA_METAMODEL_POPULATION from AvailableSettings
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-11-12 14:57:52 +01:00
Christian Beikov
38d1c122eb
Various fixes and move tests from test.jpa
...
* Implement parameter list expansion for native queries
* Fix empty subselect fetched collection initialization
* Implement support for nested table group joins to allow joins on the map-key
* Replace `getTableReference` with `resolveTableReference` where appropriate to distinguish which calls can cause table reference joins to be created
* Fix some table reference resolving issues with inverse embeddable model parts
* Use a Fetch for entity ids instead of a DomainResult
* Fix bidirectional fetching for collection initializtion
* Implement table reference join pruning for treat usages
* Implement strict JPA compliance for different parameter styles
* Ensure From nodes in Criteria are unique
* Add unique key support to DelayedEntityFetch
* Check if FetchParent is enhanced for lazy loading for DelayedEntityFetch
* Register entity instances under all possible EntityUniqueKey
* Introduce EntityJavaTypeDescriptor that implements equality based on object identity
2021-11-11 15:49:30 +01:00
Christian Beikov
1456a2dd7f
Render implicit joins as nested table group joins instead of sub queries
2021-10-25 09:15:25 +02:00
Christian Beikov
a4e406a54e
* Add SqlTypes as analogy to java.sql.Types containing constants for Hibernate specified types
...
* Add FormatMapper for a pluggable JSON serialization and deserialization strategy
* Add native UUID type support for H2, Cockroach, PostgreSQL
* Add native INET type support for Cockroach, PostgreSQL
* Add native JSON type support for MySQL, Cockroach, PostgreSQL
* Add native INTERVAL SECOND type support for H2, Cockroach, PostgreSQL
* Add fallback JdbcTypes for new SqlTypes
* Register column types for new SqlTypes
* Add support for BasicTypeReference in TypedParameterValue
* Fix a lot of method signatures with respect to type parameter issues
* Fix CustomType, UserType and EnhancedUserType with respect to type parameters
* Get rid of StringRepresentableType and some other unused deprecated methods
2021-10-19 16:33:36 +02:00
Christian Beikov
541302a511
Get rid of most basic type subclasses
2021-10-19 16:33:36 +02:00
Andrea Boriero
6b5cb2cfc4
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-10-12 11:49:54 +02:00
Steve Ebersole
48068e0311
HHH-14857 Deprecations in preparation for 6
2021-10-11 19:36:23 +01:00
Steve Ebersole
686d8fcbf1
HHH-14870 - Rename {Xyz}TypeDescriptor as {Xyz}Type
...
* `JavaTypeDescriptor` -> `JavaType`
* `JdbcTypeDescriptor` -> `JdbcType`
2021-10-11 13:13:13 -05:00
Steve Ebersole
3a0065eea4
HHH-14870 - Rename {Xyz}TypeDescriptor as {Xyz}Type
...
* `JavaTypeDescriptor` -> `JavaType`
* `JdbcTypeDescriptor` -> `JdbcType`
2021-10-11 13:11:32 -05:00
Steve Ebersole
9ad34c21d4
HHH-14856 - Introduce @CustomType;
...
HHH-14863 - Compositional definition of basic value mappings;
HHH-14864 - Drop legacy Type-based annotations;
HHH-14865 - Re-work @Any and @ManyToAny support;
* re-use BeanInstanceProducer
* Removed `@CollectionId#type`
* Change `@Any` / `@ManyToAny`
* Removed `@MapKeyType`
* Removed `@TypeDef`
* Removed `@TypeDefs`
* Removed `@Type`
* Removed `@AnyMetaDefs`
* Removed `@AnyMetaDef`
* Removed `@MetaValue`
2021-10-07 10:01:21 -05:00
Christian Beikov
710ebe57b0
Get rid of using specialized BasicType implementations and references to those and instead use a BasicTypeReference that is lazily resolved
2021-10-07 08:15:53 +02:00
Christian Beikov
d8b984ed7f
Fix some column type definitions in dialects regarding their maximum capacities. Allow the dialect to resolve the length based on type code, type name, precision, scale and display size. Fix some dialect related issues with tests. Fix untyped null parameter binding issues
2021-09-30 13:52:31 +02:00
Steve Ebersole
986d65a288
HHH-14837 - Move to Jakarta EE
...
More settings work
2021-09-28 19:01:28 -05:00
Steve Ebersole
089a3f86ae
HHH-14837 - Move to Jakarta EE
...
preliminary transformation;
only `javax.persistence.*` settings supported atm
2021-09-27 08:21:27 -05:00
Christian Beikov
0af8755949
Backport of changes from 6314395edf
on
...
wip/6.0 (Fix connection leaks by properly closing service registries)
2021-09-13 17:32:18 +02:00
Christian Beikov
6314395edf
Fix connection leaks by properly closing service registries
2021-09-09 16:39:31 +02:00
Christian Beikov
dd6efa509b
Introduce internal init_sql config and by default enable ansinull for Sybase ASE
2021-09-02 16:54:46 +02:00
Christian Beikov
ec2b1c6756
Fix test for oracle
2021-09-02 16:54:46 +02:00
Christian Beikov
ea099e7e85
Fix some query caching issue related to pagination parameters and a small case sensitivity issue
2021-09-02 16:54:46 +02:00
Christian Beikov
c9a526999a
Ignore some tests that run into HSQLDB bugs
2021-09-02 16:54:46 +02:00
Christian Beikov
65016aaf42
Implement envers order fragment support by introducing an internal sqm function and re-enable all envers tests
2021-09-02 16:54:46 +02:00
Christian Beikov
04ac8b13c3
Fix some envers tests
2021-09-02 16:54:46 +02:00
Christian Beikov
062c3cd724
Make use of distinct predicate in envers
2021-09-02 16:54:46 +02:00
Andrea Boriero
a9725f4fca
Re-enabled additional envers tests
2021-08-31 16:17:24 +02:00
Steve Ebersole
6f60cd8918
improve discriminator handling
...
- use fetch/result as the distinction for whether to select Class / entity-name or the "underlying type" value for discriminator. The only time we'd have a DomainResult for the discriminator is for Query where the type is selected; all other times want the underlying type
2021-08-30 13:32:52 -05:00
Andrea Boriero
cdeb95a4d5
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-08-30 14:07:19 +02:00
Sanne Grinovero
9267c5e6a6
HHH-14792 Remove support for bytecode enhancement via Javassist
2021-08-26 15:22:30 +01:00
Andrea Boriero
2622ce70d2
Re-enabled envers tests
2021-08-24 11:43:00 +02:00
Andrea Boriero
397ca4e4a0
Re-enabled envers tests
2021-08-23 19:05:25 +02:00
Andrea Boriero
f507c3a00e
Re-enabled envers tests
2021-08-23 17:40:43 +02:00
Andrea Boriero
83fba3064f
Re-enabled envers tests
2021-08-23 16:23:38 +02:00
Andrea Boriero
8121b5daa3
Re-enabled envers tests
2021-08-23 16:23:38 +02:00
Andrea Boriero
6f052f035e
Re-enabled envers tests
2021-08-23 16:23:38 +02:00
boris-unckel
e1b82b005c
HHH-14762 Testsuite: Assert.notNull must not be used on primitive types
...
Fix https://hibernate.atlassian.net/browse/HHH-14762
2021-08-10 14:08:34 +02:00
Gavin King
526b3659c8
more correct test code
2021-07-28 15:22:41 +02:00
Gavin King
07096e7cc1
introduce JDBCTypeDescriptor.getDefaultSqlTypeCode()
...
and rename sqlType -> jdbcTypeCode in Type hierarchy for consistency
See https://github.com/hibernate/hibernate-orm/discussions/4088
2021-07-28 15:22:41 +02:00
Steve Ebersole
d16073f7ce
remove dependency on hibernate-core tests from hibernate-envers
2021-07-27 19:38:44 -05:00
Andrea Boriero
98e64579fa
Merge branch 'main' into wip/6.0
2021-07-16 11:24:53 +02:00
Andrea Boriero
8b02aaf5a8
HHH-14608 Merge causes StackOverflow when JPA proxy compliance is enabled
2021-07-15 21:01:09 -07:00
Steve Ebersole
b26b00a358
Bump matrix testing plugin to 3.1.0 (prep for Gradle 7)
2021-07-14 11:44:35 -05:00
Christian Beikov
6447ca9b26
HHH-14693, HHH-10668 Move non-supported dialects to the hibernate-community-dialects artifact and add the SQLite dialect originally contributed by Vlad Mihalcea which was adapted for Hibernate 6. Also add HSQLDB, MySQL and Sybase ASE configurations and a CI job config
2021-07-06 10:14:20 +02:00
Andrea Boriero
6ca0be6d99
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-06-22 09:09:30 +02:00
Christian Beikov
107849c3c8
Fix jakarta sources transformation issues
2021-06-16 08:37:14 +02:00
Andrea Boriero
451568f322
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_7
2021-05-31 14:55:18 +02:00
Yoann Rodière
07eca3883d
HHH-14635 Upgrade to log4j 2
2021-05-26 09:05:56 +02:00
Andrea Boriero
ffae5474a6
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_6
2021-05-24 20:41:03 +02:00
Steve Ebersole
c7e37dc1d7
HHH-14513 : Move publishing release and snapshot artifacts to Sonatype OSSRH
2021-05-14 15:06:15 -05:00
Steve Ebersole
71515af5cc
HHH-14589 - Make sure documentation examples regarding basic-types work and update the section
...
- re-enable the basic-type tests in the `documentation` module
- fix basic-type resolution in various cases from tests in both `hibernate-core` and `documentation`
- updated the basic_types.adoc user-guide section + moved much of the "legacy" discussion to an appendix
- fixed missing impls of the optional contract `org.hibernate.type.AdjustableBasicType`
- improved handling of `NationalizationSupport` offered by a Dialect
NOTE :
- changes to `ColumnTransformerTest` are related to "composite basics" not being supported, not problems with `ColumnTransformer`.
- final failure in `org.hibernate.userguide.mapping.basic` is `SubselectTest#testRefreshLifecycle` which actually fails because refresh is not working properly
2021-05-13 09:58:20 -05: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
Andrea Boriero
c48606a5aa
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_1
2021-04-20 09:45:47 +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
Andrea Boriero
badc99705a
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge
2021-04-16 13:19:16 +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
Andrea Boriero
9c27e41184
Remove o.h.testing.junit5 package
2021-04-10 12:32:18 +02:00
Andrea Boriero
b176814b44
Re-enable envers test
2021-04-08 18:04:35 +02:00
Steve Ebersole
7fcde66d61
HHH-14524 : Rename SqlType(X) as JdbcType(X)
2021-03-29 11:33:56 -05:00
Gavin King
3c72f6fe12
cleanup lots of warnings, especially generics-related
2021-03-26 18:45:18 +01:00
Gavin King
bbf4619fcd
remove deprecated Sort annotation
2021-03-25 18:54:41 +01:00
Gavin King
c89319f3e9
remove AccessType annotation
2021-03-25 18:54:41 +01:00
Gavin King
4b56842c7f
make @AttributeAccessor annotation typesafe
2021-03-25 18:32:21 +01:00
Andrea Boriero
c3df793dbe
HHH-14509 : Git master -> main branch renaming
2021-03-22 12:38:00 +01:00
Andrea Boriero
96d103215c
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-03-22 12:26:31 +01:00
Steve Ebersole
725faa258f
HHH-14509 : Git master -> main branch renaming
2021-03-19 10:59:03 -05:00
Chris Cranford
5dfbaf58ef
Lookup RevisionTypeType rather than re-create CustomType instances
2021-03-12 08:32:07 +01:00
Chris Cranford
2cf8131f6e
Fix JdbcParameterBinding with RevisionType enum
2021-03-12 08:32:07 +01:00
Andrea Boriero
cb603a337b
Removed use of EntityPersister#getEntityTuplizer()
2021-03-04 17:29:26 +01:00
Steve Ebersole
ddf434df7e
HHH-14469 - Support schema-tooling on sub-sets of the relational model known to Hibernate
...
- @BootstrapServiceRegistry
- Support for filtering at schema-tooling level
2021-03-04 09:42:45 -06:00
Gavin King
7b7597f40e
modernize Interceptor + Lifecycle interfaces
2021-03-04 15:24:02 +01:00
Gavin King
b3aa7d0794
remove Serializable id from the Tuplizer stuff
2021-03-04 15:24:02 +01:00
Christian Beikov
4931c7e69f
Merge remote-tracking branch 'upstream/master' into wip/6.0
2021-02-10 12:00:37 +01:00
Christian Beikov
de1524df68
Merge remote-tracking branch 'upstream/master' into wip/6.0
2021-02-10 11:28:58 +01: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
Andrea Boriero
6d124a7c6d
Merge remote-tracking branch 'upstream/master' into wip/6.0
2021-01-14 11:34:06 +01:00
Christian Beikov
4de1870785
HHH-14318 Introduce column mapping abstract to support formulas easily
2020-12-17 17:44:25 +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
Andrea Boriero
bb4c4d0767
Merge remote-tracking branch 'upstream/master' into wip/6.0
2020-11-24 12:33:51 +01: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
Andrea Boriero
4d8c89920a
Merge remote-tracking branch 'upstream/master' into wip/6.0
2020-10-27 14:24:37 +00:00
Sanne Grinovero
503c48cbc7
HHH-14290 Remove capability of loading classes by name from HCANN
2020-10-27 07:13:02 +00:00
Andrea Boriero
9cf4edfbee
Merge remote-tracking branch 'upstream/master' into wip/6.0
2020-10-26 08:14:01 +00:00
Sanne Grinovero
8f1873121e
HHH-10715 Use the more efficient iterators
2020-10-25 21:33:26 +00:00
Andrea Boriero
283c3fefb5
Merge remote-tracking branch 'upstream/master' into wip/6.0
2020-08-07 11:23:44 +01: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
Andrea Boriero
798f327f68
Revert "fix issue with not compiling tests"
...
This reverts commit fc914ea647
.
2020-07-30 18:32:38 +01:00
Andrea Boriero
fc914ea647
fix issue with not compiling tests
2020-07-30 18:08:35 +01:00
Nathan Xu
61cd51a4c8
get rid of javassist
2020-07-30 10:15:26 -05:00
Rafi Shamim
4655bdbe12
HHH-13724 Add CockroachDB dialects and configs for testing
2020-07-27 12:49:40 +01:00
Andrea Boriero
9ba18b8c5d
Merge remote-tracking branch 'upstream/master' into wip/6.0_merge_46
2020-07-07 15:43:17 +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
9297522a2c
Fix envers compilation error
2020-04-29 08:05:09 +01:00
Steve Ebersole
96f4a350e0
* HBM mappings
...
* dynamic models
* initial non-aggregated cid support
2020-04-27 15:21:09 -05:00
Andrea Boriero
5c86c4a805
Merge remote-tracking branch 'upstream/master' into wip/6.0_merge_29
2020-04-09 07:37:11 +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
Steve Ebersole
40d0c8580e
Merge remote-tracking branch 'upstream/master' into wip/6.0
...
- up to the point of upgrading Gradle version for wrapper to 5.6.3
2020-04-01 11:32:00 -05: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
The Geeky Asian
e808041477
HHH-13856 - Long-awaited TODOs done as an improvement
...
1. TODO: Remove duplicate method from ConstraintConstaint.java currently has two duplicate methods. 1. getColumnIterator()2. columnIterator()
Both the methods return the same value i.e. column.iterator().
One of them needs to be removed in order to reduce and clean the duplication.
2. TODO: Change method name for getXmlFiles in BaseCoreFunctionalTestCaseCurrently, in BaseCoreFunctionalTestCase a method named getXmlFiles()has a TODO placed that suggests the method name to be changed to getOrmXmlFiles().
Since the method has a protected scope, there is a possibility it is being used by other clients. Hence, changing the method name in minor versions might break the code for clients.
2020-02-20 10:54:50 -06:00
Andrea Boriero
eb43734658
Fix compilation errors after merge
2020-02-05 12:16:41 +00:00
Andrea Boriero
f77fb75639
Merge remote-tracking branch 'upstream/master' into wip/6.0_merge_23
2020-02-05 11:37:36 +00:00
gavinking
4f5b37c9c4
Use SequenceSupport everywhere instead of deprecated methods of Dialect
2020-01-30 14:01:34 -06:00
gavinking
992b390fce
Get type-specific column length/precision/scale defaulting working again
...
And fix resulting breakage to envers
2020-01-30 14:01:34 -06: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
Andrea Boriero
4b0da2444b
Merge remote-tracking branch 'upstream5/master' into wip/6.0_merged_11
2019-11-08 14:24:48 +00:00
Steve Ebersole
92391ec3e6
change expected type of entity identifier values from Serializable to Object - fixed all related compile problems in all modules
2019-11-07 13:42:57 -06:00
Steve Ebersole
5b3c6c4884
continued work on replacing LoadPlan with SQL AST approach - cleanup;
...
change expected type of entity identifier values from Serializable to Object
2019-11-07 13:42:57 -06: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
Andrea Boriero
8b500acc1d
Merge remote-tracking branch 'upstream5/master' into wip/6.0_merged_9
2019-10-17 16:02:43 +01: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
Andrea Boriero
567eb38069
Merge remote-tracking branch 'upstream5/master' into wip/6.0_merged_6
2019-10-09 18:00:48 +01:00
Chris Cranford
d95c16e9ab
HHH-13655 Fix NullPointerException for audited MapKeyEnumerated collections with basic value types
2019-10-04 19:28:20 -04:00
Andrea Boriero
4b6777cde2
Merge remote-tracking branch 'upstream5/master' into wip/6.0_merged_4
2019-10-02 10:24:59 +01: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
Andrea Boriero
726dbeef34
Merge remote-tracking branch 'upstream5/master' into wip/6.0_merged_4
2019-09-30 16:45:27 +01:00
Chris Cranford
4b8c81908c
HHH-11797 Add support for @MapKeyEnumerated mappings
2019-09-30 09:25:17 +01:00
Andrea Boriero
20f2002269
6 - fix compilation errors in envers and osgi projects
2019-09-12 10:42:33 +01:00
Steve Ebersole
0acd11fae3
6 - SQM based on JPA type system
...
Completed rebase on master (from the point just after HHH-11147 work) - fixed compilation failures
2019-09-12 10:42:33 +01:00
Andrea Boriero
c45108a2b6
6 - SQM based on JPA type system
2019-09-12 10:42:32 +01:00
Andrea Boriero
b196374da9
6 - SQM based on JPA type system
2019-09-12 10:42:32 +01:00
Andrea Boriero
44e01cdf7e
6 - SQM based on JPA type system
2019-09-12 10:42:31 +01:00
Steve Ebersole
f8a75994e1
6 - SQM based on JPA type system
...
- work on `org.hibernate.query` (especially `NamedQueryRepository` and friends)
- work on `org.hibernate.sql.exec`
- work on `org.hibernate.sql.results`
- work on `org.hibernate.sql.exec`
- work on `org.hibernate.sql.results`
- work related to `org.hibernate.metamodel.model.mapping.spi.ValueMapping` - including "sketching in" the hooks with `org.hibernate.persister.walking`
2019-09-12 10:42:29 +01:00
Steve Ebersole
8d0ff71dfc
6 - SQM based on JPA type system
...
- further work on `org.hibernate.query` (especially `NamedQueryRepository` and friends)
- initial work on `org.hibernate.sql.exec`
- initial work on `org.hibernate.sql.results`
- SemanticPathPart handling
- NamedQueryMemento
- work on ProcedureCall
- continued work on `org.hibernate.sql.exec`
- continued work on `org.hibernate.sql.results`
- ported `hibernate-testing` JUnit 5 support
2019-09-12 10:42:29 +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
Chris Cranford
aa288ba345
HHH-13104 - Skip these tests when no-column-support enabled.
2019-01-15 18:18:20 -05:00
Chris Cranford
b66f548b5f
HHH-13191 - Fix test using a table-name that wasn't compliant across dialects.
2019-01-10 10:52:27 -05:00
Chris Cranford
3cf2b50911
HHH-13191 - Added test case.
2019-01-08 08:54:29 -05:00
Chris Cranford
c8166b3f5d
HHH-13051 - Refactored strategy solution.
2018-11-13 19:20:45 +01:00
Rokko11
68df2792c6
HHH-13051 Make audit tables structure more extensible
2018-11-13 19:20:45 +01:00
Chris Cranford
69bde03c24
HHH-12913 - Fix test on oracle database.
2018-11-13 08:36:44 -05:00
Chris Cranford
c17e4832a9
HHH-12913 - Fix test failure on Oracle db.
2018-11-08 08:35:50 -05:00
Chris Cranford
b00f580d8d
HHH-12913 - Fix AuditJoinTable to work when specified in an AuditOverride.
2018-11-07 15:31:47 -05:00
Chris Cranford
8a74973776
HHH-12913 - Added test case.
2018-11-07 15:30:11 -05:00
Chris Cranford
d39d456614
HHH-12992 - Fix tests to run on various db platforms without naming conflicts.
2018-11-01 14:42:44 -04:00
Chris Cranford
1e2eea95cb
HHH-12992 - Fix tests to run on various db platforms without naming conflicts.
2018-10-31 15:52:37 -04:00
Chris Cranford
eff27db90a
HHH-12992 - Fix proper support for order-by annotation on audited entity associations.
2018-10-30 15:34:03 -04:00
Chris Cranford
334e064272
HHH-12992 - Added test cases.
2018-10-30 15:34:03 -04:00
Chris Cranford
10148324d1
HHH-10201 - Fix element-collection attributes to always be audited if parent is audited.
2018-10-30 15:25:35 -04:00
Chris Cranford
42fe168056
HHH-10201 - Added test cases.
2018-10-30 15:25:35 -04:00
Guillaume Smet
bb822aee31
HHH-12935 Make ExportIdentifierTests extend BaseUnitTestCase
2018-10-16 23:54:51 +02:00
Guillaume Smet
66d9859813
HHH-12935 Require sequence support in ExportIdentifierTests
2018-10-16 19:23:41 +02:00
Gail Badner
3806d27f08
HHH-12935 : test cases
2018-10-16 03:59:10 -07:00
Sanne Grinovero
4eb726ef4c
HHH-12950 Use the Annotation Processor specific scopes of Gradle
2018-09-04 23:02:26 +01:00
Guillaume Smet
d195ce03bc
HHH-12931 Revert "HHH-12542 - Add necessary privileged action blocks for SecurityManager used on WildFly."
...
This reverts commit 15a59a1a19
.
2018-08-28 17:34:32 +02:00
Guillaume Smet
c55f3def03
HHH-12903 Add the column names to the proper @Column annotations
2018-08-12 17:51:48 +02:00
Chris Cranford
421fc53a8d
HHH-12903 - Fix CommitFlushCollectionTest failing on Oracle.
2018-08-10 13:33:27 -04:00
Chris Cranford
8dab6974ef
HHH-12903 - Fix CommitFlushCollectionTest failing on Oracle.
2018-08-10 10:47:08 -04:00
Chris Cranford
8178d76ca5
HHH-12834 - Disable test which fails on Sybase.
2018-08-02 11:05:12 -04:00
Chris Cranford
333c190c82
HHH-12846 - Merge cascade of collection fails when orphan removal enabled with flush mode commit.
2018-07-23 11:00:55 -04:00
Chris Cranford
3d93073b83
HHH-12826 - Added test case.
2018-07-18 18:06:58 -04:00
Chris Cranford
15a59a1a19
HHH-12542 - Add necessary privileged action blocks for SecurityManager used on WildFly.
2018-07-18 17:18:51 +02:00
Andrea Boriero
8757ee4191
HHH-12776 Add test for issue
2018-07-09 13:33:36 +02:00
Chris Cranford
fcdb89302a
HHH-12757 - Fix test failure on Oracle.
2018-07-03 13:17:28 -04:00
Chris Cranford
35cd3a1c38
HHH-12764 - Fix test failure with Oracle.
2018-07-03 12:26:06 -04:00
Chris Cranford
6dea02bac5
HHH-12754 - Fix broken envers tests on other database platforms.
2018-07-03 12:09:35 -04:00
Sanne Grinovero
a67c6b9cd4
HHH-12760 Remove no longer needed EqualsHelper and cleanup some equality checks
2018-07-03 10:43:49 +01:00
Chris Cranford
b7d92ed19b
HHH-12755 - Fix broken envers tests on Postgres and EnterpriseDB
2018-07-02 10:32:01 -04:00
Chris Cranford
c33000d7ad
HHH-12754 - Fix broken envers tests on other database platforms.
2018-07-02 10:08:53 -04:00
Chris Cranford
e41e5445f8
HHH-12607 - Reworked and introduced more test cases.
2018-06-20 13:27:42 -04:00
Chris Cranford
0b7c1e2fcb
HHH-12607 - Support map-based collections without equals/hashcode implementations.
2018-06-20 13:27:42 -04:00
Chris Cranford
00a56a188b
HHH-12607 - Added test case.
2018-06-20 13:27:42 -04:00
Philippe Marschall
4c52764c41
HHH-12604 Replace EqualsHelper.equals with Objects.equals
2018-06-13 14:20:19 +02:00
Chris Cranford
bb5ab3881c
Fix typo in toString() method.
2018-05-26 15:48:58 -04:00
Steve Ebersole
9f293b113b
HHH-12519 - Use Forbidden APIs library (Gradle plugin) to check our use of APIs
...
- fixing failures in non-core projects
2018-05-12 21:22:42 -05:00
Chris Cranford
6fb4ec0e02
HHH-11859 - Fix PropertyAccessException on update of detached audited entity.
2018-04-27 14:42:07 -04:00
Chris Cranford
adb9024c28
HHH-11859 - Added test case.
2018-04-27 14:42:02 -04:00
Chris Cranford
80ce45e86c
HHH-12373 - Improve javadoc to avoid confusion about method expectations.
2018-04-24 09:54:02 -04:00
Chris Cranford
27a6b5d143
HHH-10667 - Fix Envers allowing @IdClass mappings using entity primary keys.
2018-04-18 10:12:54 -04:00
yinzara
1ae930ef69
HHH-10667 - Added test case.
2018-04-18 10:12:54 -04:00
Chris Cranford
11456a9892
HHH-12498 - Fix NPE when audited entity composite-key references non-audited entity.
2018-04-17 17:23:52 -04:00
Chris Cranford
231dd064a4
HHH-12448 - Fix potential memory leak with Envers and JTA when after-completion callbacks did not fire.
2018-04-17 14:02:41 -04:00
Chris Cranford
c7c919f54a
HHH-12424 - Fix unintended binary compatibility breaks between 5.1 and 5.3
...
HHH-11737 - Remove dependency upon org.hibernate.criterion package.
2018-04-16 10:28:06 -04:00
Andrea Boriero
e2b7317560
HHH-12474 - Make sure the JPA version is defined by a single property across build files
2018-04-11 21:54:21 +01:00
Chris Cranford
d26a2adb54
HHH-12327 - Remove javassist from jar manifest and explicitly exclude it from the build.
2018-04-11 11:10:21 -04:00
Chris Cranford
4cfdbaaf1f
HHH-12475 - Remove unnecessary dependencies from hibernate-envers build.
2018-04-11 11:06:14 -04:00