I need to catch up on this thread but wanted to mention that AS7-4996 is
the AS7 fix that rearranges application deployment phases if either
persistence unit property "hibernate.ejb.use_class_enhancer" or
"jboss.as.jpa.classtransformer" is true. This change is in the AS7
master (AS 7.2 target).
If its important to do class enhancing (correctly) in earlier versions
of AS7, we should discuss that.