openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mansour Al Akeel <>
Subject exclude-unlisted-classes ignored
Date Sat, 27 Sep 2014 04:08:16 GMT
When creating EntityManagerFactory using OpenEJB,
exclude-unlisted-classes works as expected. However, when creating it
directly as in:

props.setProperty("javax.persistence.jdbc.driver", this.driver);
    props.setProperty("javax.persistence.jdbc.url", this.url);
    props.setProperty("javax.persistence.jdbc.user", this.username);
    props.setProperty("javax.persistence.jdbc.password", this.password);


    EntityManagerFactory emf =
Persistence.createEntityManagerFactory(null, props);

The classes are not scanned. The only classes that are loaded and
created tables into the DB are those listed in the persistence.xml

I noticed that openejb and openjpa has their own implementation of

I just need to confirm if this is a bug, or I am missing something.

Thank you.

View raw message