Announcement Announcement Module
Collapse
No announcement yet.
JPA2 Metamodel Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JPA2 Metamodel

    Hibernate jpamodelgen doesn't generate Metamodel for Roo managed entities.
    Is it possible to solve this or only with push-in refactor?

  • #2
    We are currently working on a comparable feature which reads JDBC metadata and generates Roo managed entities. See http://jira.springframework.org/browse/ROO-435 for details. In the meantime, you would have to add Roo annotations manually to your generated entities.

    Cheers,
    Stefan

    Comment


    • #3
      Metamodel generation

      Originally posted by Stefan Schmidt View Post
      We are currently working on a comparable feature which reads JDBC metadata and generates Roo managed entities. See http://jira.springframework.org/browse/ROO-435 for details. In the meantime, you would have to add Roo annotations manually to your generated entities.

      Cheers,
      Stefan
      Hi,

      How to do it now when your mentioned task is closed?
      Thanks

      Comment


      • #4
        Originally posted by tewe View Post
        Hibernate jpamodelgen doesn't generate Metamodel for Roo managed entities.
        Is it possible to solve this or only with push-in refactor?
        I'd like to be able to generate the meta model for some JPA Queries that I need. They're a little bit more complicated than it's possible to create with the the finders.

        Since I need some kind of Criteria, CriteriaQuery seems to be the better approach.

        Originally posted by Stefan Schmidt View Post
        We are currently working on a comparable feature which reads JDBC metadata and generates Roo managed entities. See http://jira.springframework.org/browse/ROO-435 for details. In the meantime, you would have to add Roo annotations manually to your generated entities.

        Cheers,
        Stefan
        After pushing-in refactor, the Hibernate JPA 2 Metamodel Generator worked fine, but with this solution I loose Roo capabilities.

        Regarding database introspection, it's not easy to have an OSGI driver for my current DB2 database. Furthermore, it's a legacy database and I'd rather to model the relationships manually (I mean, I don't always trust how the database is configured, and I don't need to)

        Is there any chance to have this issue solved?

        Greetings.

        Comment

        Working...
        X