kabir/jboss-as — comment on commit cba887a2074e39008306b66472beec97a86e8893
File: jpa/hibernate3/src/main/java/org/jboss/as/jpa/hibernate3/HibernateAnnotationScanner.java line 62
By scottmarlow:

Using the PersistenceUnitMetadataImpl as a key, which has no hashcode/equals method, might need a change. I think we could probably have hashcode/equals use the PersistenceUnitMetadataImpl.scopedName field which is unique across the AS instance (combines the application deployment/subdeployment + persistence unit name.)