NOTICE: 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.
This topic has been locked.
1 reply Latest Post - 2012-05-08T18:58:32Z by LenTheivendra
Pinned topic RAD JPA tooling - id name
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
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 2700030JK713 PostsACCEPTED ANSWER
Re: RAD JPA tooling - id name2012-05-08T18:58:32Z in response to rick.lacyHi, 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.