<exclude-unlisted-classes>false</exclude-unlisted-classes> has no effect on J2SE

Description

When using the EntityManagerFactory from a webapplication (jetty), all my @Entity classes are detected, and mapped correctly.

When running the same code from Eclipse (run java application), hibernate doesn't detect any of my @Entity. Everything works perfectly if I add all the corresponding <class> entries in persistence.xml.

the following code :
<persistence-unit ...>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
</persistence-unit ...>

does not seem to have any effect..

Environment

J2SE, JDK5
Versions :
----------- Hibernate Core 3.2.CR2
Hibernate Annotations 3.2.0 CR1
Hibernate Entity Manager 3.2.0 CR1

Status

Assignee

Unassigned

Reporter

Sami Dalouche

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Affects versions

3.2.0.cr1

Priority

Major
Configure