What is @entity annotation in spring?



What is @entity annotation in spring?..

Answer / Darpan Maheshwari

The @Entity annotation is not specific to Spring but is used in Java Persistence API (JPA). It is used to indicate that a class represents an entity. When you use JPA with Spring, the @Entity annotation helps Spring understand which classes map to database tables.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is use of @configuration in spring?

1 Answers  


What is spring jdbc template?

1 Answers  


What is the scope of stateful bean in spring?

1 Answers  


What is the use of dispatcherservlet in spring?

1 Answers  


Which injection is better in spring?

1 Answers  


What is spring core container?

1 Answers  


What are advantages of spring usage?

1 Answers  


What are the benefits of using dependency injection?

1 Answers  


What is dao in spring?

1 Answers  


Is spring boot better than spring? : Spring Boot

1 Answers  


What are the types of advice in aop?

1 Answers  


What is a dependency code?

1 Answers  


Categories