Skip to content

When using hibernate and spring boot the HibernateUnproxyObjectAccessHook does not cover all scenarios #565

Closed

Description

@dwtalk

The implementation of HibernateUnproxyObjectAccessHook and how it plugs into the GlobalIdFactory's create method covers most scenarios.

However, I did find an scenario where when a Query is build and run byInstance, the instance ID of the hibernate proxy is assumed and not the id of the desired object (which is proxied).

Specifically the error I was seeing is: "ENTITY_INSTANCE_WITH_NULL_ID" which will be resolved with a pull request momentarily.

I was able to correct the issue using the ObjectAccessHook in the createInstanceId method of the GlobalIDFactory just as it is used in the create method.

Activity

  1. added a commit that references this issue on Jul 12, 2017
  2. dwtalk commented on Jul 12, 2017

    @dwtalk
    ContributorAuthor

    Pull request created for this 1 line fix

    #566

  3. bartoszwalacik commented on Jul 13, 2017

    @bartoszwalacik
    Member

    Thanks, PR merged, will be released tomorrow

  4. bartoszwalacik commented on Jul 14, 2017

    @bartoszwalacik
    Member

    released in 3.3.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions