We're updating the issue view to help you get more done. 

Make OGM support JPA's autodetection for @Entity annotated classes

Description

Actually, the only way to map entities in OGM is to list them in the persistence.xml, using the <class> tag. Since JPA provide the possibility to automatically detect which class to map simply scanning for @Entity annotated classes, it would be a great improvement to add this support in OGM. I've already tried to make it work, but it seems OGM can't make it. I even added the JPA facet to my project and enabled the autodetection, but it still didn't work.

Environment

Hibernate OGM 4.1.3, on MongoDB 2.4

Status

Assignee

Unassigned

Reporter

Gregorio Palamà

Labels

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

4.1.3.Final

Priority

Major