Results 1 to 5 of 5

Thread: JPA metamodel generator

  1. #1

    Default JPA metamodel generator

    While hibernate's jpamodelgen won't run on Roo annotated entities, Is there any plans of creating a roo add-on to do this ? Coding to Criteria API is proving to be difficult without it.

    Regards
    Sathya

  2. #2
    Join Date
    Jun 2010
    Posts
    440

    Default

    Hello Sathyakumar,

    Your question is bringing an opportunity for learning something new to me...

    Please educate me: what is jpa metamodel generator for? what are the benefits for using it?

    What is the relevance of the Criteria api?

    Thank you in advance
    jD

    Note: I know I could Google it. However, I think It would be better to get an opinion for a real developer/user.

  3. #3

    Default

    Hi jD,

    JPA 2.0 has introduced Criteria API - basically building your queries using java objects and thereby do a compile time checking on the validity of the queries rather than realizing a wrong JPQL query syntax in runtime (plus java developers who are averse to SQL syntax might prefer this more),

    As a developer to actually use Criteria API, you will be needing a metamodel class corresponding to the actual entities. These metamodel classes are typically generated

    here is a nice article on it (and is actually the first link when you google ).


    Regards
    Sathya

  4. #4
    Join Date
    Jun 2010
    Posts
    440

    Default

    Hi Sathya,

    It looks to me like a very interesting nice-to-have feature...

    Thank you very much for your valuable information

    B. Roogards
    jD

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

    Default

    For the time being, if you push-in refactor the entities, the Hibernate JPA 2 Metamodel Generator works without problems.

Posting Permissions

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