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 Posts
Re: RAD JPA tooling - id name2012-05-08T18:58:32ZThis is the accepted answer. This is the accepted answer.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.