Hello, as far as i know you have to add your hbm.xml for each of your files, one by one, exactly the same way as when you where using the org.cfg.Configuration class, but also with the AnnotationConfiguration you could add Classes configuration, those Classes must contain the EJB3-Hibernate annotations to be processed.
Also if you're using Spring with hibernate you could tell Spring to find all of the hbm.xml files within you classpath with a regex but hibernate by itself doesn't provide that functionality.
Regards,
|