Grails does not honour org.hibernate.usertype.DynamicParameterizedType interface
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
When implementing a custom hibernate UserType it is sometimes useful to get information about the mapped attribute. It is possible for custom user types to implement the DynamicParameterizedType to signal hibernate they need that information in the `setParameterValues` method.
However, because GORM overrides the default hibernate binder, that information is not being populated.
Using the latest Grails version with hibernate 5.
Contributor guide
Research direction
Start by tracing the GORM Hibernate binder used with Hibernate 5 and compare it with Hibernate's handling of org.hibernate.usertype.DynamicParameterizedType. Reproduce the issue with a custom UserType that implements the interface and verify that mapped-attribute information is populated in setParameterValues; done means the binder preserves that information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100