Hello everybody, with Hibernate's mapping files it's possible to add an entire directory and Hibernate will automatically read all the HBM files in it. So, whenever a new entity is added, it will be automatically picked up.
Now here's my question: is it possible to do something similar with annotations-mapped classes, i.e. to have Hibernate read all my classes that are mapped as entities automatically, without having to add an explicit <mapping> entry in the hibernate.cfg.xml file?
Thanks in advance Emmanuele
|