Test case attached Comment obsolete . As attached, {{persistence Please delete . xml}} contains this:
{code:xml}... <!--<class>com.wrox.site.entities.Author</class> <class>com.wrox.site.entities.Book</class> <class>com.wrox.site.entities.Publisher</class> <exclude-unlisted-classes>false</exclude-unlisted-classes>--> ...{code}
If you compile and run this (in Tomcat), the entity classes are picked up (which is not correct). Change {{persistence.xml}} to this:
{code:xml}... <!--<class>com.wrox.site.entities.Author</class> <class>com.wrox.site.entities.Book</class> <class>com.wrox.site.entities.Publisher</class>--> <exclude-unlisted-classes>false</exclude-unlisted-classes> ...{code}
Now run it and the entity classes are NOT picked up also not correct. The behavior should be the reverse in both cases.
|