I agree that this should be configurable. But, based on the patch, couldn't you simply set hibernate.ejb.use_class_enhancer to true in your persistence.xml? Am I missing something else?