Commit Graph

10243 Commits

Author SHA1 Message Date
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
Steve Ebersole 0084f82b1a Merge branch 'master' of github.com:hibernate/hibernate-orm 2019-10-01 09:26:57 -05:00
Steve Ebersole ee304305e8 HHH-13640 - Uninitialized HibernateProxy mapped as NO_PROXY gets initialized when reloaded with enhancement-as-proxy enabled 2019-10-01 09:25:09 -05:00
Steve Ebersole d46d3d66a2 HHH-13432 - EntityManagerFactory no longer exposes "javax.persistence.nonJtaDataSource" 2019-10-01 09:25:09 -05:00
Steve Ebersole 1dfb25bbbb HHH-13432 - EntityManagerFactory no longer exposes "javax.persistence.nonJtaDataSource" 2019-09-30 08:03:57 -05:00
Andrea Boriero 5d4eb8004b 5.4.6 2019-09-30 13:28:19 +01:00
Andrea Boriero 39e576cea4 5.4.6 2019-09-30 11:51:40 +01:00
Vlad Mihalcea 9a627c30fe HHH-13493 - For a native query, the SessionImpl class does not call applyQuerySettingsAndHints 2019-09-30 11:02:22 +01:00
Sanne Grinovero a92cd6c9b9 HHH-13645 Include a comment in the implementation about the design choice to not optimise for null values 2019-09-30 10:40:45 +01:00
Gail Badner 00d25c1824 HHH-13645 : StatsNamedContainer#getOrCompute throws NullPointerException when computed value is null 2019-09-30 10:30:05 +01:00
Gail Badner 3f7d03bfec HHH-13645 : test cases 2019-09-30 10:30:05 +01:00
Chris Cranford 4b8c81908c HHH-11797 Add support for @MapKeyEnumerated mappings 2019-09-30 09:25:17 +01:00
Kim Hansen 7355fc5131 Fix error in error message 2019-09-27 12:33:27 +01:00
Yash Jain c06092c964 Grammatical and syntax mistake in README.md
1. Inserted "," before "and"
2. "quite unique" creates a tautology.
3. "features" -> "feature", The sentence was about a single feature.
4. The phrases "in order to" maybe wordy. Consider changing the wording.
5. The phrases "a number of" maybe wordy. Consider changing the wording.
6.  "Note :" -> "Note:", Unnessacary space between "Note" and ":"
2019-09-27 12:00:10 +01:00
Andrea Boriero e04348079f HHH-13597 Building DatabaseInformation fails on H2 without DATABASE_TO_UPPER 2019-09-27 11:57:36 +01:00
Vootele Rotov 0e9ef8c7c9 HHH-13597 Add test for issue 2019-09-27 11:57:36 +01:00
Steve Ebersole 57fba402b4 HHH-12858 - Persistence.createEntityManagerFactory(Map) should allow overwriting jta-data-source of persistence.xml 2019-09-25 15:12:25 -05:00
Steve Ebersole 4ff3c0b6e4 HHH-13130 - Provide Gradle-based bytecode enhancement as a task separate from the compileJava task 2019-09-25 12:28:28 -05:00
Gail Badner 283802c491 HHH-13640 : Test case (marked FailureExpected) 2019-09-24 15:03:29 -07:00
Mahmoud Anouti a3cccca66d Fix typo in user guide explicit polymorphism section 2019-09-24 11:02:09 +01:00
Steve Ebersole 5c9cf4d0d8 HHH-13130 - Provide Gradle-based bytecode enhancement as a task separate from the compileJava task 2019-09-18 12:05:39 -05:00
Sanne Grinovero 1bdbc0e764 HHH-13625 After upgrading to 5.4.5, it's no longer possible to bootstrap Hibernate if the org.hibernate.cfg LOG is set to DEBUG 2019-09-17 19:43:08 +01:00
Andrea Boriero 9d171f364c 5.4.5 2019-09-17 15:42:36 +01:00
Andrea Boriero 568413a102 5.4.5 2019-09-17 14:08:29 +01:00
Yoann Rodière 0f2a037e18 HHH-13606 Upgrade the HANA JDBC driver to 2.4.59 in the matrix_hana task
It's already the version we use when running test -Pdb=hana, so let's
be consistent.
2019-09-17 08:31:42 +02:00
Sanne Grinovero 57dbfbb60e HHH-13622 Upgrade the WildFly Transaction Client to 1.1.7.Final 2019-09-16 16:34:36 +01:00
Andrea Boriero f5877052ff HHH-13621 Exception if spaces after value of javax.persistence.schema-generation.scripts.action in hibernate.properties 2019-09-16 10:12:13 +01:00
Andrea Boriero 26c2e0bf2b HHH-13621 Add test for issue 2019-09-16 10:12:13 +01:00
Yoann Rodière ef87991fa3 HHH-13605 Upgrade the MariaDB JDBC driver to 2.2.4 in the matrix_mariadb task
It's already the version we use when running test -Pdb=mariadb, so let's
be consistent.
2019-09-11 21:20:35 -05:00
Yoann Rodière debc5d37f8 HHH-13581 Disable tests involving MariaDB ConnectorJ's buggy ResultSet#getTime(int, Calendar) method 2019-09-11 21:20:35 -05:00
Yoann Rodière 74d35b2d59 HHH-13580 Ignore LocalTimeTest and OffsetTimeTest's 'nativeWriteThenRead' test for MySQL
The returned time is right (otherwise #writeThenRead would fail), it's
just that a different day is returned, but it won't affect the LocalTime
representation manipulated by the user.
2019-09-11 19:38:15 -05:00
Yoann Rodière 8fce51c765 HHH-13580 Use safer ZoneId => TimeZone conversion in AbstractJavaTimeTypeTest
We were testing GMT instead of UTC-8 without even knowing it...
2019-09-11 19:38:15 -05:00
Yoann Rodière f9f6793232 HHH-13580 Fix a copy/paste error in OffsetTimeTest 2019-09-11 19:38:15 -05:00
Yoann Rodière a580227569 HHH-13582 Ignore LocalDateTest for MySQL
MySQL ConnectorJ 8.x returns the wrong date
when the JVM default timezone is different from the server timezone:
https://bugs.mysql.com/bug.php?id=91112
2019-09-11 19:38:15 -05:00
Yoann Rodière be7cc76556 HHH-13582 Upgrade MySQL Connector/J to 8.0.17
ConnectorJ 8 is the version used in WildFly integration tests.
ConnectorJ 5 is apparently no longer tested.

Note this solves most timezone-related issues we've been having.
2019-09-11 19:38:15 -05:00
Andrea Boriero f0218e82ad HHH-13616 Enable the hibernate-orm-modules test for JDK 11 2019-09-11 12:37:51 +01:00
Andrea Boriero ea8694ad38 HHH-13611 : Restore EntityMetamodel constructor to take SessionFactoryImplementor argument instead of PersisterCreationContext 2019-09-09 11:00:31 +01:00
Gail Badner b26ec4e625 HHH-13611 : Restore EntityMetamodel constructor to take SessionFactoryImplementor argument instead of PersisterCreationContext 2019-09-09 09:52:07 +01:00
Gail Badner 2076c68ddf HHH-13586 : ClassCastException when using a single region name for both entity and query results 2019-09-05 12:49:00 -07:00
Gail Badner 1cb81c0304 HHH-13586 : test case 2019-09-05 12:49:00 -07:00
Steve Ebersole 7ceaf3aaa4 HHH-13607 - Exception thrown while flushing uninitialized enhanced proxy with immutable natural ID 2019-09-04 20:46:22 -07:00
Gail Badner 650b1dec6a HHH-13607 : Added tests 2019-09-04 20:46:22 -07:00
Gail Badner 148b4b2ed0 HHH-13590 : TransientObjectException merging a non-proxy association to a proxy 2019-09-03 13:03:01 -07:00
Gail Badner 11409ed633 HHH-13590 : test cases 2019-09-03 13:03:01 -07:00
Andrea Boriero ea301a7084 HHH-13564 - Fix EmbeddedIdGenericsTest failures on Oracle and MariaDB 2019-09-02 14:02:47 +01:00
Sanne Grinovero 40b30fa099 HHH-13600 Avoid capturing lambdas in ParameterTranslationsImpl 2019-08-28 11:56:37 +01:00
Sanne Grinovero c8a36cd961 HHH-13600 Extracting some more constants from loops 2019-08-28 11:56:35 +01:00
Sanne Grinovero 9f71bd890d HHH-13600 Unguarded log statement in CollectionCacheInvalidator 2019-08-28 11:56:33 +01:00
Sanne Grinovero 86e498f4f7 HHH-13600 Avoid capturing lambdas in AbstractDomainDataRegion construction 2019-08-28 11:56:31 +01:00
Sanne Grinovero 3d715c0ae8 HHH-13600 Extract Alias allocation from loop in AbstractCollectionPersister 2019-08-28 11:56:28 +01:00