Commit Graph

1054 Commits

Author SHA1 Message Date
Christian Beikov d423b52be3 HHH-17904 Introduce config property to enable native enum type 2024-03-28 17:02:20 +01:00
Gavin King 53301b530d HHH-17833 change log warnings for invalid mappings to exceptions
finally decided to just put an end to this because it's bad and that's that
2024-03-11 00:13:41 +01:00
Vincent Stradiot 52526cd155 HHH-17442 Add test 2024-02-01 10:11:32 +01:00
Vincent Stradiot a3342ec233 HHH-17442 Use FlushMode.MANUAL for select query in ValidityAuditStrategy 2024-02-01 10:11:32 +01:00
mgarcia.devinuesa b386b25676 HHH-16881 - Fix conditional when CDI extensions are enabled 2023-12-19 19:02:14 +01:00
yjpark 46b064633b HHH-17023 Implements AltibaseDialect 2023-11-14 14:51:35 +01:00
Christian Beikov bfb9fcc0f6 HHH-17355 Unify array_contains and array_contains_all as well as deprecate FunctionRenderingSupport in favor of new FunctionRenderer contract 2023-11-06 18:01:04 +01:00
waahhh 634f21baff HHH-17340 fix typos in javadoc 2023-10-27 22:40:40 +02:00
Jan Schatteman cb6a78dc44 HHH-17301 - Reduce amount of connections
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2023-10-19 11:27:45 +02:00
Yanming Zhou f309a88552 HHH-16935 Fix inconsistent method name 2023-10-11 18:49:57 +02:00
Chris Cranford b9a88a9670 HHH-17139 Support Instant as revision timestamps 2023-10-11 14:28:23 +02:00
Kai Suchomel f1e2fa17ef HHH-17243 added Testcase for java.time.Duration 2023-09-29 10:34:34 +02:00
Chris Cranford e1f9ccaee9 HHH-17080 Fix LocalDateTime resolved value precision 2023-09-19 10:22:29 +02:00
Gavin King 7074188875 HHH-16592 fix incorrect mapping in envers test 2023-09-11 14:53:56 +02:00
Chris Cranford 586cafa4a1 HHH-17189 Respect Audited annotations in component mapped super types 2023-09-09 17:49:32 -04:00
Christian Beikov dd9a51a53a Implement sane collection of skip/require dialect annotations 2023-09-07 14:43:31 +02:00
Christian Beikov 2176d3aaeb Account for PG < 14 not supporting stored procedure OUT parameters 2023-09-06 20:02:37 +02:00
Christian Beikov d4accd0233 Make use of connection pooling in most tests 2023-09-06 14:57:05 +02:00
Gavin King 70626c1e44 HHH-17158 detect incorrect use of @JoinColumn outside @JoinTable/@CollectionTable 2023-09-04 17:27:19 +02:00
Steve Ebersole d3a1bd70ae HHH-17047 - Follow up tasks for Gradle 8.2 upgrade
- toolchains
- lazy Task creation
- documentation (documentation/ and release/) tasks
2023-08-14 07:57:48 -05:00
Sanne Grinovero aea84e3fdc HHH-17061 Remove deprecated method PersistentClass#getJoinIterator 2023-08-10 11:32:04 +02:00
Sanne Grinovero 5754cd608c HHH-17061 Remove PersistentClass#getPropertyIterator 2023-08-10 11:32:04 +02:00
Sanne Grinovero ee85011c5d HHH-17061 Remove PersistentClass#getUnjoinedPropertyIterator() 2023-08-10 11:32:04 +02:00
Sanne Grinovero b602c9bddf HHH-17055 Remove deprecated method Value#getColumnIterator() 2023-08-10 11:32:04 +02:00
Chris Cranford 03d5ce08bc HHH-14176 Use column name 'description' rather than 'desc`.
Using the `desc` keyword creates problems for certain dialects, so changed the
property's name so that there is no keyword conflicts.
2023-07-24 12:11:43 +02:00
Christian Beikov 940259dc4c HHH-14176 Handle embedded composite ids in envers specially to avoid lazy loading 2023-07-24 12:11:43 +02:00
Jan Schatteman f175581180 HHH-14176 Added test case for issue
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2023-07-24 12:11:43 +02:00
Sanne Grinovero 042ea16b37 HHH-16963 Avoid H2's capability to register a JVM shutdown hook: causes classloader leaks during tests 2023-07-21 11:43:01 -04:00
Steve Ebersole e2504647d4 HHH-13741 - LOG_SLOW_QUERY parameter doesn't always log SQL 2023-07-19 11:35:52 -05:00
Sanne Grinovero 0fb5895d08 Automated cleanup: suboptimal string handling (thanks IntelliJ) 2023-06-26 14:38:59 +01:00
Gavin King 51460470f4
add AuditReader.find(Class,Object, LocalDateTime) (#6811)
since java.util.Date is bad

and add some Javadoc to AuditReader
2023-06-16 14:00:09 +02:00
Gavin bdacc8b05f make it easier to mock the QueryEngine 2023-06-09 17:24:58 +02:00
Francois Steyn a415555df4 HHH-16563: Using jakarta.annotation.Generated instead of javax versions 2023-06-07 16:46:13 -05:00
Marco Belladelli 4e9a643346 Fix several tests failing on Oracle 11 and some others on older dbs 2023-05-15 09:27:35 +02:00
Gavin 20b157000c HHH-16125 final cleanup of legacy enum converters stuff 2023-04-29 15:42:56 +02:00
Gavin c91cfdf2f1 HHH-16125 delete/fix a bunch of assertions that constrain implementation details
these are bad tests; they don't test observable behavior
2023-04-29 15:42:56 +02:00
Gavin febf39cc55 HHH-16125 complete redesign of how enum mappings work
- introduce SqlTypes.ENUM
- no more converters!
- finish of Potgres enum support
- disable BIND for enums in Criteria on PostgreSQL
  (PostgreSQL doesn't do the needed type conversion to the enum type)
2023-04-29 15:42:56 +02:00
Christian Beikov 75caf15e6b HHH-16382 Fix resolving table references especially for self-referential associations 2023-04-24 20:02:44 +02:00
Gavin 7b8cd14052 HHH-16163 update tests to use new annotations 2023-04-08 13:10:46 +02:00
Andrea Boriero 570ccae476 HHH-16097 Move all tests from documentation into hibernate-core 2023-03-24 07:43:13 -05:00
Steve Ebersole e675962779 HHH-16311 - Migrate away from UserType for enum handling 2023-03-17 13:13:24 -05:00
Steve Ebersole b276128f56 HHH-16284 - Rename JdbcParameterRender to ParameterMarkerStrategy 2023-03-13 15:35:38 -05:00
Steve Ebersole 99f8b0fd3d HHH-16260 - JdbcParameterRenderer not called with dynamic filters
HHH-16256 - JdbcParameterRenderer to have an impact on write operations
HHH-16273 - Support for Dialect native JdbcParameterRenderer
2023-03-09 19:51:33 -06:00
Sanne Grinovero 6724f7aeb5 HHH-16223 Deprecate HBM2DDL_SCRIPTS_ACTION 2023-03-07 21:39:17 +00:00
Sanne Grinovero f7d383320b HHH-16223 Deprecate HBM2DDL_SCRIPTS_DROP_TARGET 2023-03-07 21:39:17 +00:00
Sanne Grinovero f9c0761268 HHH-16223 Deprecate HBM2DDL_SCRIPTS_CREATE_TARGET 2023-03-07 21:39:17 +00:00
Sanne Grinovero d0cdcb006d HHH-16223 Deprecate HBM2DDL_DATABASE_ACTION 2023-03-07 21:39:17 +00:00
marko-bekhta 5d61b03b20 HHH-16217 Use only rendered Javadocs for collecting configuration properties 2023-03-01 13:26:49 -06:00
Sanne Grinovero cf2e723d6f HHH-16228 Dialect instance might be wrapped when doing instanceof checks for capabilities
To properly support the idea of wrapping the Dialect, we need
to take this into account whenever an `instanceof` is used
to check for Dialect capabilities.
Also some code is casting to the expected Dialect.
2023-02-27 22:53:31 +00:00
Christian Beikov 9ef49c596d Get rid of most capturing lambdas in write path 2023-02-13 16:57:24 +01:00
Steve Ebersole 375f6b5f14 HHH-16069 - Skip CDI for Hibernate extensions by default 2023-01-26 00:29:24 -06:00
Steve Ebersole a742f5e988 HHH-16069 - Skip CDI for Hibernate extensions by default 2023-01-26 00:29:24 -06:00
Andrea Boriero f4aec1cd0a HHH-16031 @ManyToMany with @JoinTable(inverseColumn = ...) and SortedSet may results in data loss 2023-01-24 10:49:31 +01:00
Steve Ebersole a552a73632 HHH-16006 - Implement an "additional mapping" contributor SPI 2023-01-19 16:30:46 -06:00
Andrea Boriero b774f80ce9 HHH-15966 ElementCollection with nested Embeddables fails with ArrayIndexOutOfBoundsException 2023-01-12 18:19:38 +01:00
Steve Ebersole a9ef9045f2 HHH-16006 - Implement an "additional mapping" contributor SPI 2023-01-09 15:41:56 -06:00
LLEFEVRE fc57bd6a17 HHH-15973 hibernate-envers tests must rely on SharedDriverManagerConnectionProviderImpl instead of DriverManagerConnectionProviderImpl 2023-01-04 18:05:13 +01:00
Gavin e8f899ffbc avoid the use of TypeConfiguration.getSessionFactory() which is not very typesafe
continue sorting out issues with lifecycle of SessionFactoryImpl and friends
2023-01-03 21:06:49 +01:00
Gavin 11760d3ce3 various jdoc format fixes + improve a package-info
- add some periods
- fix up all the code snippets I messed up
- add some <p>s after lists and code blocks
- improve section of package-info which was hard to understand
- fix jdoc for LobHelper
- fix code example in @ValueGenerationType
2022-12-27 12:00:02 +01:00
Christian Beikov 4901d2bb61 HHH-15464 Allow JdbcType to expose the type code to use for DDL 2022-12-22 17:25:13 +01:00
Steve Ebersole 32cc739f39 HHH-15923 - Clean-up the org.hibernate.loader package
HHH-15799 - API/internal split for org.hibernate.cfg package

and some minor Javadoc work
2022-12-21 16:11:48 -06:00
Christian Beikov ba985518c7 HHH-15898 Add @Instantiator annotation to mark canonical constructor for embeddables 2022-12-21 12:43:15 +01:00
Christian Beikov 7007bafe55 HHH-15872 Add ColumnOrderingStrategy SPI and handle record structs specially 2022-12-20 20:17:23 +01:00
Steve Ebersole 48c383121f HHH-15837 - Cleanup the tuple package 2022-12-14 09:25:59 -06:00
Steve Ebersole 33c00d78c3 HHH-15818 - Drop PropertyMapping in favor of new mapping-model 2022-12-14 09:25:59 -06:00
Gavin 0228c3d185 HHH-15800 introduce EventType + EventTypeSets in place of the previous "two booleans" approach
I hope @sebersole likes this better.

re-deprecate GenerationTime since the way forward is EventType
2022-12-05 22:21:52 +01:00
Gavin 075b268280 HHH-15800 create .generator and .binder packages and move new interfaces to them 2022-12-05 22:21:52 +01:00
Gavin 216fe0f615 HHH-15800 make Generator free of GenerationTiming 2022-12-05 22:21:52 +01:00
Gavin 12682c0abd slightly sanitize API of mapping package 2022-12-03 11:04:21 +01:00
Sanne Grinovero 33ce6a3d79 HHH-15790 Refactor casting strategies for HibernateProxy across the codebase 2022-12-01 21:31:55 +00:00
Sanne Grinovero fbf469830c HHH-15790 Make HibernateProxy also type-cache friendly 2022-12-01 21:31:55 +00:00
Steve Ebersole 631d0bad71 HHH-15393 - Improve write-paths to use mapping model 2022-11-30 23:50:39 -06:00
Gavin a67cfd039e HHH-15789 unify IdentifierGenerator with value generator stuff 2022-12-01 00:02:18 +01:00
Gavin 1bd082bd3e much better naming 2022-12-01 00:02:18 +01:00
Gavin 3e6fcdeda3 unify new ValueGenerationStrategy interfaces with existing ValueGeneration stuff
- introduce ValueGenerationStrategy to abstract over IMVGS and IDVGS
- make ValueGeneration a mixin of IMVGS with IDVGS
- make IDVGS accept a Dialect for SQL fragment generation
  (it was based on an obsolete version of ValueGeneration)
- adapt all the code which only handled single-column value generation
  to handle multiple columns, as introduced by IDVGS

Still to do: the whole AnnotationValueGeneration stuff still requires the use
of the mixin interface, and you can't use IMVGS or IDVGS directly. That bit is
going to require a bit more thinking about backward compatibility.
2022-11-29 21:03:58 +01:00
Steve Ebersole a9ac98b364 HHH-15393 - Improve write-paths to use mapping model
HHH-15723 - Fix foreign-key modeling
2022-11-28 14:25:40 -06:00
Gavin 0253e1fe7a HHH-15767 put unique constraints where they belong on optional @OneToOne associations
this was a bug that allowed people to use @OneToOne as a regular @ManyToOne
and ... people did ... as evidenced by all these bogus tests I just fixed

this is in principle a breaking change because it breaks code that was broken
2022-11-27 02:14:38 +01:00
Christian Beikov 82e42ef946 Fix OrderSequenceGenerationTest 2022-11-26 13:44:29 +01:00
Marco Belladelli 9c0b30f99d HHH-15760 various small html fixes javadoc 2022-11-26 09:49:56 +01:00
Marco Belladelli f38dd28043 HHH-15760 mass replace self-closing tags in javadoc 2022-11-26 09:49:56 +01:00
Christian Beikov f4b1e00ddf Use NOCACHE for all envers tests since they can't cope with values to be skipped 2022-11-26 09:41:54 +01:00
Jan Schatteman 70873f5d2f HHH-15686 - test and fix for issue 'Envers incorrect key parameter order in insert statement when InheritanceType.JOINED and @Embeddable ID'
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-11-25 19:49:15 +01:00
Christian Beikov d6bfe1cacf HHH-15700 Allow specifying NOCACHE for Envers revision info sequence 2022-11-18 11:06:39 +01:00
Christian Beikov 4914d14a43 HHH-15626 Move old databases to nightly pipeline and add some SQL Server 2022 features 2022-11-18 11:06:39 +01:00
Gavin King 61c128000b HHH-15672 introduce Generated(UPDATE) for properties only generated on update 2022-11-08 12:36:38 +01:00
Gavin King 6e8d609485 squash warnings + remove usages of some deprecated methods 2022-10-29 23:32:05 +02:00
Christian Beikov 940f15b63e HHH-15528 Add Cockroach to Jenkins nightly test matrix and fix issues 2022-10-21 09:51:16 +02:00
Gavin King 7d34f86a95 HHH-15509 correctly support @NotFound @ManyToMany
1. error if a non-@ManyToMany collection is @NotFound
2. disable constraint generation for @NotFound @ManyToMany
3. allow lazy fetching for @NotFound @ManyToMany
4. rework a completely bogus test so it makes sense
2022-09-26 15:05:34 +02:00
Jan Schatteman 89a98f2dc7 HHH-15489 - Remove support for Oracle versions older than 11.2
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-09-21 17:52:03 +02:00
Fabricio Gregorio 4ac2054784 HHH-15522 Implement a LazyInitializable interface that PersistentCollection and Envers collections extend or implement. Improve related tests. 2022-09-20 18:39:32 +02:00
Fabricio Gregorio c3f1762f3b HHH-15522 Add hibernate isInitialized tests on envers collections 2022-09-20 18:39:32 +02:00
Jan Schatteman 3dec1ca4dc HHH-15447 - Remove references to deprecated dialects
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-09-12 16:05:00 +02:00
Andrea Boriero c84b36e3e9 HHH-15414 For Oracle Dialect from version 8 Envers should not generate new revision when database replaces empty string with NULL during INSERT or UPDATE statements 2022-07-21 22:00:14 +02:00
Andrea Boriero 4b0446427c HHH-15413 For Oracle Dialect from version 8 Envers should use an ordered sequence 2022-07-21 22:00:14 +02:00
Andrea Boriero 0f599da6c4 HHH-15406 Tests annotated with org.hibernate.testing.RequiresDialect having as value a deprecated dialect are not executed 2022-07-21 22:00:14 +02:00
Sanne Grinovero 697cfea170 HHH-15411 Introduce an system property to fully disable Hibernate's use of a system SecurityManager 2022-07-21 12:39:39 +01:00
Gavin King ba48130c3f remove exclamation marks from error messages! 2022-06-24 17:14:43 +02:00
Steve Ebersole 69e57404c6 HHH-15226 - Publish a Gradle platform (Maven Bom++) for Hibernate ORM
- plus use Gradle version catalogs as opposed to `libraries.gradle`
- dropped OSGi manifest entries for hibernate-envers - they were broken and we decided we no longer support OSGi
2022-04-26 14:41:04 -05:00
Christian Beikov 4b48dd31f6 Get rid of MVCC JDBC connection parameter 2022-03-24 09:15:11 +01:00
Steve Ebersole d276075ade HHH-15132 - Improvements for NavigablePath
Package move;
@Incubating
2022-03-21 02:53:56 -05:00