Topic
  • 1 reply
  • Latest Post - ‏2012-05-08T18:58:32Z by LenTheivendra
rick.lacy
rick.lacy
29 Posts

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

    Re: RAD JPA tooling - id name

    ‏2012-05-08T18:58:32Z  
    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.