| I have attached a test case in the form of an Eclipse/Maven project containing a JUnit test case. The entity class EntityWithGenId uses a sequence generator to generate its myId field (so values 1, 2, 3 ...). The orm file for that entity type tries to override the choice of generator that is specified in the annotation with a generic generator which generates an id based upon a string field on the object (silly example I know but it serves to illustrate the issue.) The test case creates three of these and checks their id is what is expected if generated by the custom generic generator - which it is not, the ids remain as generated by the sequence generator. So, the override in the XML has not been picked up. With a small amount of additions to the JPAOverridenAnnotationReader it is possible to make this work - so I will produce a proposed fix and submit it for consideration as a pull request. thanks Richard |