Problem solved. Solution is described here:
http://jroller.com/page/gbilodeau/?anchor=of_running_jpa_unit_tests1.
Guillaume Bilodeau wrote:
>
> I am experiencing a similar problem when using entity beans in the form of
> annotated classes: the tests run fine under Eclipse but fail under Maven
I am experiencing a similar problem when using entity beans in the form of
annotated classes: the tests run fine under Eclipse but fail under Maven
with the same "Unknown entity" message. A quick look at the Hibernate logs
shows that the entities are recognized under Eclipse but not under Maven.
Hi,
I'm having a problem run the unit tests for a hibernate and spring-based
application with the surefire plugin.
I'm using the xdoclet plugin to generate the hibernate mapping files,
and a spring LocalSessionFactoryBean to load
the mappings, like so:
The surefire plugin:
maven