Uploaded image for project: 'Hibernate OGM'
  1. Hibernate OGM
  2. OGM-818

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.1.3.Final
    • Fix Version/s: None
    • Component/s: core
    • Labels:
    • Environment:
      Hibernate OGM 4.1.3, on MongoDB 2.4
    • Last commented by a user?:
      true

      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.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: