bestlong/krank

Is it necessary to have the name as "id" for primary key in the entity class

Opened this issue · 0 comments

What steps will reproduce the problem?
1. Create a table with a primary key in the database.
2. Generate the entity class for the table created.
3. Set a different name (do not use "id") for the primary key in the entity 
class.

What is the expected output? What do you see instead?
Expected:
Should not throw any error and CRUD operation should be performed.

Actual:
 org.springframework.beans.NotReadablePropertyException: Invalid property 'id' of bean class [com.tcs.telecom.tib.tibadmin.entities.ActivityStatusRef]: Bean property 'id' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?

What version of the product are you using? On what operating system?
2.0.0

Please provide any additional information below.


Original issue reported on code.google.com by 1989kish...@gmail.com on 17 Aug 2012 at 10:32