Results 1 to 4 of 4

Thread: JPA2 Metamodel

  1. #1
    Join Date
    Feb 2010
    Posts
    3

    Default JPA2 Metamodel

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

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    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
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  3. #3

    Question Metamodel generation

    Quote 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

  4. #4
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default

    Quote 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.

    Quote 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •