I've got a test case for this here: https://github.com/mattdrees/hibernate-orm/commit/89425ac0b29dad114f37c1437112d8f1f9d32165 (at least, I'm pretty sure it's the same issue as described above)
Shall I submit a pull request?