What is the exact meaning of the JPA @Entity annotation?
@Entity annotation defines that a class can be mapped to a table. And that is it, it is just a marker, like for example Serializable interface. And why @Entity annotation is mandatory? … well, it is the way how JPA is designed. When you create a new entity you have to do at least two … Read more