Home »
MCQs »
JPA MCQs
Which of the following annotations defines a class as an entity?
12. Which of the following annotations defines a class as an entity?
- @table
- @entitymanager
- @entityfactory
- @entity
Answer: D) @entity
Explanation:
@entity annotation is used to define a class as an entity.