What is the exact meaning of the JPA @Entity annotation?

前端 未结 2 585
渐次进展
渐次进展 2021-01-31 16:39

I am studying JPA in Spring application and I have some doubts related to the @Entity annotation.

So I have a model class like this:

@En         


        
2条回答
  •  花落未央
    2021-01-31 17:17

    Entities in JPA are nothing but POJOs representing data that can be persisted to the database. An entity represents a table stored in a database. Every instance of an entity represents a row in the table.

    More about the entities: https://www.baeldung.com/jpa-entities

提交回复
热议问题