[hibernate/hibernate-orm] 500edf: HHH-12720 Test proxy serialization with hibernate....
by GitHub
Branch: refs/heads/5.3
Home: https://github.com/hibernate/hibernate-orm
Commit: 500edf4b8a8b320b43456db2c8e2230c815de074
https://github.com/hibernate/hibernate-orm/commit/500edf4b8a8b320b43456db...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/serialization/EntityProxySerializationTest.java
Log Message:
-----------
HHH-12720 Test proxy serialization with hibernate.enable_lazy_load_no_trans = true
Commit: 3336489e40af55c57558636d6dc465fa2f3610d9
https://github.com/hibernate/hibernate-orm/commit/3336489e40af55c57558636...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/proxy/AbstractLazyInitializer.java
M hibernate-core/src/main/java/org/hibernate/proxy/AbstractSerializableProxy.java
M hibernate-core/src/main/java/org/hibernate/proxy/pojo/BasicLazyInitializer.java
M hibernate-core/src/main/java/org/hibernate/proxy/pojo/bytebuddy/ByteBuddyInterceptor.java
M hibernate-core/src/main/java/org/hibernate/proxy/pojo/bytebuddy/SerializableProxy.java
M hibernate-core/src/main/java/org/hibernate/proxy/pojo/javassist/JavassistLazyInitializer.java
M hibernate-core/src/main/java/org/hibernate/proxy/pojo/javassist/SerializableProxy.java
M hibernate-core/src/test/java/org/hibernate/serialization/EntityProxySerializationTest.java
Log Message:
-----------
HHH-12720 Allow lazy loading outside of a transaction after proxy deserialization if the proper settings were enabled
Commit: e0900b17e2c77bc607fc0e3dcffd0fc63f30a400
https://github.com/hibernate/hibernate-orm/commit/e0900b17e2c77bc607fc0e3...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/proxy/AbstractSerializableProxy.java
Log Message:
-----------
HHH-12720 Deprecate a useless constructor in AbstractSerializableProxy
A no-arg constructor is only necessary for superclasses of serializable
classes that are not themselves serializable. Here the class is
serializable, so the constructor is useless.
Commit: f2b4aedc037d8263a5a934b619dbee24e44d846b
https://github.com/hibernate/hibernate-orm/commit/f2b4aedc037d8263a5a934b...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/proxy/AbstractLazyInitializer.java
M hibernate-core/src/main/java/org/hibernate/proxy/pojo/BasicLazyInitializer.java
M hibernate-core/src/test/java/org/hibernate/serialization/EntityProxySerializationTest.java
Log Message:
-----------
HHH-7686 Clarify and test initialization code in the writeReplace() method in proxies
If we copy the behavior of "traditional" (non-map) proxies to the
"dynamic-map" proxies, we'd better know what this behavior is and be
sure it works correctly.
Commit: bc6c98254175e4e5d4cb5bd02b42c3dc02740890
https://github.com/hibernate/hibernate-orm/commit/bc6c98254175e4e5d4cb5bd...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/serialization/MapProxySerializationTest.java
A hibernate-core/src/test/resources/org/hibernate/test/serialization/DynamicMapMappings.hbm.xml
Log Message:
-----------
HHH-7686 Test dynamic map proxy serialization
Commit: 782336faeddb36012309bcbe855b470cbe2299e8
https://github.com/hibernate/hibernate-orm/commit/782336faeddb36012309bcb...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/proxy/AbstractLazyInitializer.java
M hibernate-core/src/main/java/org/hibernate/proxy/AbstractSerializableProxy.java
M hibernate-core/src/main/java/org/hibernate/proxy/map/MapLazyInitializer.java
M hibernate-core/src/main/java/org/hibernate/proxy/map/MapProxy.java
A hibernate-core/src/main/java/org/hibernate/proxy/map/SerializableMapProxy.java
M hibernate-core/src/test/java/org/hibernate/serialization/MapProxySerializationTest.java
Log Message:
-----------
HHH-7686 Allow lazy loading outside of a transaction after dynamic map proxy deserialization if the proper settings were enabled
In theory, trying to deserialize MapLazyInitializer instances that were
serialized before this patch should still work, although using such
instances (i.e. trying to access any method on the proxy) would still
fail, just like it used to before this patch.
Commit: 7471aa158945825b4144f6613d43405a5e3168f0
https://github.com/hibernate/hibernate-orm/commit/7471aa158945825b4144f66...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/proxy/map/MapProxy.java
Log Message:
-----------
HHH-7686 Add missing @Overrides in MapProxy
Compare: https://github.com/hibernate/hibernate-orm/compare/147476038bbf...7471aa1...
**NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
6 years, 5 months
[hibernate/hibernate-orm] 4699c7: HHH-12720 Test proxy serialization with hibernate....
by GitHub
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-orm
Commit: 4699c73243dc67e2a22c1dd2437a6cf35c581743
https://github.com/hibernate/hibernate-orm/commit/4699c73243dc67e2a22c1dd...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/serialization/EntityProxySerializationTest.java
Log Message:
-----------
HHH-12720 Test proxy serialization with hibernate.enable_lazy_load_no_trans = true
Commit: 41943fb920989502c99da6960da607faa6f96d2e
https://github.com/hibernate/hibernate-orm/commit/41943fb920989502c99da69...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/proxy/AbstractLazyInitializer.java
M hibernate-core/src/main/java/org/hibernate/proxy/AbstractSerializableProxy.java
M hibernate-core/src/main/java/org/hibernate/proxy/pojo/BasicLazyInitializer.java
M hibernate-core/src/main/java/org/hibernate/proxy/pojo/bytebuddy/ByteBuddyInterceptor.java
M hibernate-core/src/main/java/org/hibernate/proxy/pojo/bytebuddy/SerializableProxy.java
M hibernate-core/src/main/java/org/hibernate/proxy/pojo/javassist/JavassistLazyInitializer.java
M hibernate-core/src/main/java/org/hibernate/proxy/pojo/javassist/SerializableProxy.java
M hibernate-core/src/test/java/org/hibernate/serialization/EntityProxySerializationTest.java
Log Message:
-----------
HHH-12720 Allow lazy loading outside of a transaction after proxy deserialization if the proper settings were enabled
Commit: 415f964a67397cbd6fcc78448072ec677cbd1c43
https://github.com/hibernate/hibernate-orm/commit/415f964a67397cbd6fcc784...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/proxy/AbstractSerializableProxy.java
Log Message:
-----------
HHH-12720 Deprecate a useless constructor in AbstractSerializableProxy
A no-arg constructor is only necessary for superclasses of serializable
classes that are not themselves serializable. Here the class is
serializable, so the constructor is useless.
Commit: 677f3dffba3305dbd18df48d423edffe0f9451dd
https://github.com/hibernate/hibernate-orm/commit/677f3dffba3305dbd18df48...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/proxy/AbstractLazyInitializer.java
M hibernate-core/src/main/java/org/hibernate/proxy/pojo/BasicLazyInitializer.java
M hibernate-core/src/test/java/org/hibernate/serialization/EntityProxySerializationTest.java
Log Message:
-----------
HHH-7686 Clarify and test initialization code in the writeReplace() method in proxies
If we copy the behavior of "traditional" (non-map) proxies to the
"dynamic-map" proxies, we'd better know what this behavior is and be
sure it works correctly.
Commit: 1522efc0adddcdfb5820d1450b28ba9a36e162eb
https://github.com/hibernate/hibernate-orm/commit/1522efc0adddcdfb5820d14...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/serialization/MapProxySerializationTest.java
A hibernate-core/src/test/resources/org/hibernate/test/serialization/DynamicMapMappings.hbm.xml
Log Message:
-----------
HHH-7686 Test dynamic map proxy serialization
Commit: f3e62ea795b8894fa96fc4f3bffd9355f6cba40f
https://github.com/hibernate/hibernate-orm/commit/f3e62ea795b8894fa96fc4f...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/proxy/AbstractLazyInitializer.java
M hibernate-core/src/main/java/org/hibernate/proxy/AbstractSerializableProxy.java
M hibernate-core/src/main/java/org/hibernate/proxy/map/MapLazyInitializer.java
M hibernate-core/src/main/java/org/hibernate/proxy/map/MapProxy.java
A hibernate-core/src/main/java/org/hibernate/proxy/map/SerializableMapProxy.java
M hibernate-core/src/test/java/org/hibernate/serialization/MapProxySerializationTest.java
Log Message:
-----------
HHH-7686 Allow lazy loading outside of a transaction after dynamic map proxy deserialization if the proper settings were enabled
In theory, trying to deserialize MapLazyInitializer instances that were
serialized before this patch should still work, although using such
instances (i.e. trying to access any method on the proxy) would still
fail, just like it used to before this patch.
Commit: d4477ff5f876170072cedb56072637be10755876
https://github.com/hibernate/hibernate-orm/commit/d4477ff5f876170072cedb5...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2018-07-09 (Mon, 09 Jul 2018)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/proxy/map/MapProxy.java
Log Message:
-----------
HHH-7686 Add missing @Overrides in MapProxy
Compare: https://github.com/hibernate/hibernate-orm/compare/dcf1f66b8ac8...d4477ff...
**NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
6 years, 5 months