Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2012-05-08T18:58:32Z by LenTheivendra
rick.lacy
rick.lacy
29 Posts
ACCEPTED ANSWER

Pinned topic RAD JPA tooling - id name

‏2012-04-28T19:59:20Z |
When I use the JPA tooling in RAD 8.0.4 to generate entities for a table where the primary key consists of multiple columns, RAD creates the entitiy and another class for the embedded id as expected. The embedded id class always has PK at the end of it. I want to know if there is an easy way to make the default something else - Id, for example.
Updated on 2012-05-08T18:58:32Z at 2012-05-08T18:58:32Z by LenTheivendra
  • LenTheivendra
    LenTheivendra
    13 Posts
    ACCEPTED ANSWER

    Re: RAD JPA tooling - id name

    ‏2012-05-08T18:58:32Z  in response to rick.lacy
    Hi, currently there is no way to individually customize the embedded id class that gets generated when multiple primary key columns are involved. You will have to use the refactoring tools to rename the class after generation and all references in other java code and persistence.xml will be automatically updated.