Chris Cranford
310ae3ea0d
HHH-12826 - Added test case.
...
(cherry picked from commit 3d93073b83
)
2018-07-18 18:10:51 -04:00
Chris Cranford
d24685de67
HHH-12542 - Add necessary privileged action blocks for SecurityManager used on WildFly.
2018-07-18 17:50:27 +02:00
Martin Simka
d23fc129cc
HHH-12825 CriteriaHQLAlignmentTest.testCountReturnValues fails on databases that don't support tuple distinct counts because it expects wrong exception
2018-07-18 16:03:24 +02:00
Martin Simka
2f12913b98
HHH-12824 ASTParserLoadingTest.testComponentNullnessChecks fails with DB2 because it uses legacy-style query parameter
2018-07-18 16:00:41 +02:00
Martin Simka
103de8de84
HHH-12823 CompositeIdTest.testDistinctCountOfEntityWithCompositeId fails on databases that don't support tuple distinct counts because it expects wrong exception
...
The SQLGrammarException is now wrapped in a PersistenceException, we
should take that into account.
2018-07-18 14:38:45 +02:00
Guillaume Smet
fd5f5cbe0a
HHH-12820 Add entries that have been added to the wiki
2018-07-18 12:11:15 +02:00
Guillaume Smet
9ca6b1a3cf
HHH-12816 Enable the experimental features of ByteBuddy when building with JDK 11
2018-07-18 11:25:40 +02:00
Guillaume Smet
dde8744ca3
HHH-12718 Add a comment about the true meaning of interceptorHandledDirtyCheck
2018-07-17 12:10:19 +02:00
Yoann Rodière
da2d986efb
HHH-12718 Avoid double negations in DefaultFlushEntityEventListener#dirtyCheck
2018-07-17 12:10:19 +02:00
Yoann Rodière
e53e0ef790
HHH-12718 Compute dirtiness using whatever method is appropriate after a flush event interception
...
We used to have a simpler version of the dirtyCheck() method after an
interception, but that's not enough.
2018-07-17 12:10:19 +02:00
Yoann Rodière
47107e3e88
HHH-12718 Test that dirtiness strategies are invoked a second time after a flush interceptor changes the entity state
...
Bytecode enhancement is harder to test, so I didn't add a test for that,
but since bytecode enhancement dirty checking is called exactly at the
same place, if one works, the other should, too.
2018-07-17 12:10:19 +02:00
Ulrich Bestfleisch
a180caecd6
HHH-12718 - Entity changes in @PreUpdate callback are not persisted when lazy loading is active for more than one field
2018-07-17 12:10:19 +02:00
Gail Badner
0b92eb528d
HHH-12773 : Document org.hibernate.Query.getHibernateFirstResult(), setHibernateFirstResult(), getHibernateMaxResults(), setHibernateMaxResults() in migration guide
2018-07-17 11:18:51 +02:00
Yoann Rodière
af427cb6c5
HHH-12795 Test the flushMode attribute of @NamedQuery and @NamedNativeQuery
2018-07-17 11:07:41 +02:00
Yoann Rodière
36fcadaa6a
HHH-12795 Use the exact flush mode specified in @NamedQuery/@NamedNativeQuery when instantiating named queries
...
... instead of using an approximation in terms of JPA flush mode.
2018-07-17 11:07:41 +02:00
Andrea Boriero
9c0746d2ca
HHH-12742 Add the removal of JpaIntegrator to the migration guide
2018-07-17 11:03:28 +02:00
Guillaume Smet
e4ae86cce2
HHH-12811 Add @Target annotations to @CreationTimestamp and @UpdateTimestamp
2018-07-17 10:59:39 +02:00
Guillaume Smet
1688c3ff8d
HHH-12786 Improve the basic proxy interceptor
...
Apart from cosmetic changes, we were testing in the equals() method that the
instance == the proxied object which will always be true.
We should use the argument of the equals() method instead to do the
comparison.
And we can do the comparison on the instance, instead of requiring
passing the proxiedObject into the interceptor.
2018-07-16 17:35:15 +02:00
Guillaume Smet
67698b8bdb
HHH-12786 Only define the default constructor
...
We don't need the others, better not create them in the proxy.
2018-07-16 17:35:15 +02:00
Guillaume Smet
0fda6be86e
HHH-12786 Allow to call methods when the interceptor is not set yet
...
Typically, if the constructor calls instrumented methods, the
interceptor is not defined yet and we get a NPE.
2018-07-16 17:35:15 +02:00
Guillaume Smet
297031319d
HHH-12786 Properly indent the Bytebuddy DSL
...
It helps to understand what exactly these calls do.
2018-07-16 17:35:15 +02:00
Guillaume Smet
0818195cea
HHH-12807 Force to execute the release task with JDK 8
...
Considering hibernate-orm-modules tests are disabled with JDK 11, it's
safer to prevent us from running a release with it. And all in all, we'd
better release with JDK 8.
2018-07-16 15:08:29 +02:00
Guillaume Smet
e9f9b869c0
HHH-12813 Disable Asciidoclet in Javadoc generation
...
We don't have the certainty that we don't use Asciidoctor Javadoc but
using Asciidoclet leads to malformed Javadoc if we are using HTML
Javadoc, which concerns the high majority of our files.
2018-07-16 15:08:29 +02:00
Guillaume Smet
109481f903
HHH-12809 Use an HTTP link for the Javadoc link to our Bean Validation documentation
2018-07-16 15:08:29 +02:00
Guillaume Smet
05111931a9
HHH-12808 Upgrade Gradle to 4.8.1
2018-07-16 15:08:29 +02:00
Guillaume Smet
103d40101f
HHH-12807 Disable the hibernate-orm-modules tests for JDK 11
2018-07-16 15:08:29 +02:00
Guillaume Smet
54f20d8281
HHH-12805 Upgrade Mockito to 2.19.1
2018-07-16 15:07:56 +02:00
Guillaume Smet
667b565028
HHH-12804 Don't mock Map in CollectionBinderTest
...
Apparently, Mockito + ByteBuddy are unable to mock Map on JDK 11.
It might be solved in the future but there's no point in doing it so
let's avoid it.
2018-07-16 15:07:56 +02:00
Guillaume Smet
48c44ef7d0
HHH-12803 Upgrade ByteBuddy to 1.8.13
2018-07-16 15:07:56 +02:00
Guillaume Smet
a9e20c18c5
HHH-12801 Adjust the assertion to the new message generated by JDK 11
2018-07-16 15:07:56 +02:00
Guillaume Smet
9d36d1d91f
HHH-12800 Use a class loading strategy suitable for the JDK used
...
The previously chosen strategy used misc.Unsafe which is not possible
anymore with JDK 11.
2018-07-16 15:07:56 +02:00
Gail Badner
7e69797a45
HHH-12802 : Fix test case to recover from exception properly
...
(cherry picked from commit 9202a5a11d
)
2018-07-13 15:53:46 -07:00
Gail Badner
3af8b6235a
HHH-12802 : Hibernate does not thrown an exception when more than entity is loaded with the same ID
...
(cherry picked from commit 926ad5a133
)
2018-07-13 14:51:12 -07:00
Gail Badner
ff18d904e8
HHH-12802 : test case
...
(cherry picked from commit 2ef777e3fe
)
2018-07-13 14:50:51 -07:00
Vlad Mihalcea
4b51867c44
HHH-12771 - Caused by: java.lang.UnsupportedOperationException: Cache provider [org.hibernate.cache.ehcache.internal.EhcacheRegionFactory@3271ec2a] does not support `transactional` access
2018-07-13 09:43:03 +03:00
Sanne Grinovero
bb71c63853
HHH-12799 Enforce version alignment of Mockito and ByteBuddy dependencies
2018-07-12 16:27:53 +01:00
Vlad Mihalcea
5e6298d2f9
HHH-12349 - User Guide documentation for @Filter is too verbose
2018-07-12 14:45:18 +03:00
Jonathan Bregler
b09fbb431d
HHH-12798: Fix for nested spatial functions on SAP HANA
2018-07-12 14:17:55 +03:00
Vlad Mihalcea
1192eed560
HHH-12787 - SessionJdbcBatchTest hangs with DB2
2018-07-12 13:41:37 +03:00
Guillaume Smet
5f6c122a3e
HHH-12793 Fix preexisting indentation issues
2018-07-12 12:13:32 +02:00
Guillaume Smet
be47ba3393
HHH-12793 Add a comment about why we ignore javax.activation for now
2018-07-12 12:13:32 +02:00
Fabio Massimo Ercoli
6d0509bb34
HHH-12793 Upgrade Karaf, pax-exam and reenable the OSGi tests
2018-07-12 12:13:32 +02:00
Diego Lovison
a4df91bdb3
HHH-12797 Fix cache modes relationships table layout
2018-07-12 10:45:53 +02:00
Guillaume Smet
30592b7d74
HHH-12774 Add missing jars to the distribution archives
2018-07-12 10:35:30 +02:00
Galder Zamarreño
65c2aca69f
HHH-12177 Update relocation of Infinispan provider for 5.3
2018-07-12 10:08:12 +02:00
Vlad Mihalcea
3bba6adac9
HHH-12768 - TimeAndTimestampTest fails with SQL Server and MYSQL
2018-07-12 06:37:20 +03:00
Sanne Grinovero
a72102b47d
HHH-12789 Upgrade to Mockito 2.19.0
2018-07-11 10:02:10 +02:00
Sanne Grinovero
6546858eb0
HHH-12788 Enable mockito-inline for the Agroal integration module
2018-07-11 10:02:10 +02:00
Yoann Rodière
fb8e1c1d71
HHH-12695 Restore the getType method in ParameterRegistration
...
It was removed in 5.3.0.Beta1, but this breaks backward compatibility
with 5.1.
2018-07-11 09:57:25 +02:00
Yoann Rodière
68ad2130e8
HHH-12695 Rename org.hibernate.query.QueryParameter#getType to getHibernateType
...
Because it conflicts with the Class-returning getType method we want to
re-introduce in ParameterRegistration to restore backward compatibility.
2018-07-11 09:57:25 +02:00