Using appfuse-modular-spring as the base, i'm trying to create a Person
screen following the tutorials and for web framework, i use
http://appfuse.org/display/APF/Using+Spring+MVC tutorial. Run mvn
integration-test at the end to the tutorial and everything build
successfully. However, got this error when launched (mvn jetty:run-war).
Data Access Failure
Unknown entity: com.mycompany.app.model.Person; nested exception is
org.hibernate.MappingException: Unknown entity:
com.mycompany.app.model.Person.
Here is what i added to the ApplicationContext.xml. I must be missing some
Person wiring somewhere.
<bean id="personManager" class="
com.mycompany.app.service.impl.GenericManagerImpl">
<constructor-arg>
<bean class="com.mycompany.app.dao.hibernate.GenericDaoHibernate"
autowire="byType">
<constructor-arg value="com.mycompany.app.model.Person"/>
</bean>
</constructor-arg>
</bean>
Thanks
dev