-
1. Re: JBoss Seam DVDStore Example- Hibernate Mapping Question
nickarls Feb 10, 2008 9:37 AM (in response to bloreguy)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. -
2. Re: JBoss Seam DVDStore Example- Hibernate Mapping Question
bloreguy Feb 10, 2008 5:47 PM (in response to bloreguy)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.
Thanks again -
3. Re: JBoss Seam DVDStore Example- Hibernate Mapping Question
nickarls Feb 11, 2008 2:28 AM (in response to bloreguy)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(?)