"The jar file or directory whose META-INF directory contains the persistence.xml file is termed the root of the persistence unit."
As your Account and Person class are part of this jar file, they are seen as "annotated managed persistence classes found in the root of the persistence unit". [ November 21, 2008: Message edited by: Kristel Nieuwenhuys ]
Joined: Nov 11, 2008
Hello,Kristel You mean, any class file found in the root of the persistence unit, or the subdirectories of the root of the persistene unit is evaluated?
Thanks for pointing it out. The question should make it clear that Account and Person class belong to com.enthu.ejbplus package, in which case, they are positioned correctly in the jar file and will be inspected by the container for annotations.