Going to answer my own question here.

Gradle (m2) used to mix 'resources' and classes into classes/main and
classes/test directory .
Now (m9) resources are split into their own directory during the build.

This presents a problem (at least for me!) due to situation described here:
http://forum.springsource.org/showthread.php?87243-Cannot-get-JPA-Spring-to-auto-scan-Entities.

"hibernate starts scanning from parent folder of where persistence.xml is
found."

So now with M9 persistence.xml is totally separated from all the class
files !



On Wed, Mar 21, 2012 at 2:25 PM, Kallin Nagelberg <
[email protected]> wrote:

> Hey everyone,
>
> I am trying to upgrade from milestone-2 to milestone-9 and have noticed
> something peculiar. When running my tests none of my persistence classes
> are found:
>
> java.lang.IllegalArgumentException: Unknown entity:
> com....SimpleTestEntity at
> org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:626)
>
> When I add them as class tags to persistence.xml they work, but I never
> had to do that before. Is there some new classloader funkiness that could
> be causing this? Any suggestions?
>
> Cheers,
> -Kal
>

Reply via email to