Java – @ entity entity cannot be resolved to a type
•
Java
Learn spring MVC and hibernate
import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Customer {
Error in @ entity line: cannot resolve entity to type
I started from spring-framework-2.5 Can you tell me what I lack here?
Solution
You are missing an import statement:
import javax.persistence.Entity;
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码