adspace


What is @entity annotation in spring?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between @controller and @restcontroller in spring?

556


How can you inject java collection in spring?

518


What is lazy class?

490