Skip to content

NumberToDomainInstanceEditor does not handle hibernate proxies #14

Open
gpothier opened this Issue Mar 3, 2013 · 1 comment

1 participant

@gpothier
gpothier commented Mar 3, 2013

Sometimes the objects obtained from the database are not of the actual domain class but rather of a synthetic subclass (an hibernate proxy, see eg. http://jira.grails.org/browse/GRAILS-4614)

NumberToDomainInstanceEditor checks if a value is from the expected class by doing this:
value.class == domainClass
which fails if value is a proxy.

It should be domainClass.isAssignableFrom(value.class)

@gpothier
gpothier commented Apr 5, 2013

Hi, now that the fix has been merged, would it be possible to generate a new version of the plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.