[hibernate-commits] [hibernate/hibernate-orm] 4699c7: HHH-12720 Test proxy serialization with hibernate....

GitHub noreply at github.com
Mon Jul 9 11:33:49 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-orm
  Commit: 4699c73243dc67e2a22c1dd2437a6cf35c581743
      https://github.com/hibernate/hibernate-orm/commit/4699c73243dc67e2a22c1dd2437a6cf35c581743
  Author: Yoann Rodière <yoann at 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/41943fb920989502c99da6960da607faa6f96d2e
  Author: Yoann Rodière <yoann at 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/415f964a67397cbd6fcc78448072ec677cbd1c43
  Author: Yoann Rodière <yoann at 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/677f3dffba3305dbd18df48d423edffe0f9451dd
  Author: Yoann Rodière <yoann at 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/1522efc0adddcdfb5820d1450b28ba9a36e162eb
  Author: Yoann Rodière <yoann at 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/f3e62ea795b8894fa96fc4f3bffd9355f6cba40f
  Author: Yoann Rodière <yoann at 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/d4477ff5f876170072cedb56072637be10755876
  Author: Yoann Rodière <yoann at 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...d4477ff5f876
      **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.


More information about the hibernate-commits mailing list