We are trying to use TypeDef annotation to apply custom encryption / decryption for a set of fields. This is working perfectly with SessionFactory but not with EntityManager approach.
Is there any additional configuration or jar that needs to be included to make it work with EntityManager approach ?
Note:
Since spring has issues scanning package-info.java, we have moved the @TypeDefs to all entity classes.