The entities have JPA annotations that describe the mapping between objects and database tables and hibernates serves as the underlying implementation. The annotations are scanned automagically
There are plenty of JPA beginner tutorials around.
Thank you very much. WHere do I specify that the JPA annotated classes have to be loaded automatically? I used the entry
property name="hibernate.archive.autodetection" value="class, hbm" and still see that when I refer to an entity class, it gives me an exception that the entity class is not mapped.
When I add an entry mapping class in hibernate.cfg.xml, the error disappears.
Also, I see that the dvdstore demo does not use any entry to autodetect the schema and this is where I missed the link.
Use eclipse + jboss tools to generate a sample project and move on from there.
You shouldn't have to do anything extra, I think the classes just have to be found by the same classloader that picks up your persistence.xml(?)