Uploaded image for project: 'Hibernate ORM'
  1. HHH-10317

Allow to bind custom types that implement the Collection interface through JPA APIs

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.4
    • Fix Version/s: 5.0.7
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      Description

      Right now, when a value that is an instance of java.util.Collection is passed as parameter value, it will be added as parameter list as can be seen here: https://github.com/hibernate/hibernate-orm/blob/master/hibernate-entitymanager/src/main/java/org/hibernate/jpa/internal/QueryImpl.java#L237
      When having a custom user type that implements java.util.Collection this will obviously not work as expected. The parameter will be expanded and binding the values will not use the custom user type.
      Since the parameter metadata is already known, it shouldn't be that hard to check if a parameter should be bound as collection or as a single parameter.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 50m
                50m