MCQs>IT & Programming>Java>Hibernate code: @Entity public class Foo{ String key; @Id public String getId() { return id; } public void setId(String id) { this.id = id; } } In the above code, Will be executed successfully?
Java MCQs
Hibernate code: @Entity public class Foo{ String key; @Id public String getId() { return id; } public void setId(String id) { this.id = id; } } In the above code, Will be executed successfully?
Answer
Correct Answer: No, there is an error in hibernate and generates an exception
Explanation:
Note: This Question is unanswered, help us to find answer for this one