HibernateDomainExporter - issues with generic Map definitions inside component types #404
When I set the HibernateDomainExporter loose with a domain class with this field:
And this in the hbm.xml:
I get this exception:
I believe this is because in HibernateDomainExporter (from 3.1.1) at line 377 you expect the field to have one generic type (the "componentType") only. For j.u.Map there are two!
I have fixed this locally by replacing the code:
I suspect mine is a nastier hack than your choice of solution would be, but unfortunately I don't have much time left to look into what the more elegant solution is!
The text was updated successfully, but these errors were encountered:
I apply this patch (https://gist.github.com/joeltgf/5754019) to the QUERYDSL_3_1_1 tag and the exception is thrown.
After you make the change as suggested above, the exception disappears.
Not the best test case on the planet I'm afraid, but it does go some way to prove the issue I raised. Better late than never...!