Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|Ans. First Annotation will set the Entity name as EMPLOYEES and hence will try to map with the same Table name. |
The second annotation will make the Entity mapped to table EMPLOYEES irrespective of the Entity Name ( which is class name in this case ).
Third Annotations will set the different names for Enitity and Table and will explicitly map them.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  hibernate   hibernate annotations   entity annotation   table annotation|
| What is the difference between these 2 annotations ?|
@Entity ( name="EMPLOYEES" )