250x250
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- 설정
- Thymeleaf
- git
- Tomcat
- myBatis
- ubuntu
- STS
- MySQL
- error
- Source
- 문서
- Python
- maven
- IntelliJ
- Exception
- Docker
- MSSQL
- SpringBoot
- oracle
- JDBC
- JavaScript
- 오픈소스
- AJAX
- Core Java
- Open Source
- spring
- Eclipse
- Spring Boot
- jpa
- PostgreSQL
Archives
- Today
- Total
헤르메스 LIFE
[Exception] No identifier specified for entity 본문
728x90
No identifier specified for entity: ezpus.sample.domain.Member
아래와 같은 오류가 발생하였습니다.
Caused by: org.hibernate.AnnotationException: No identifier specified for entity: ezpus.sample.domain.Member
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Entity
@NoArgsConstructor
@Getter
@Table(name = "member")
public class Member {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String name;
/**
* @param username
*/
public Member(String name) {
this.name = name;
}
}
import org.springframework.data.annotation.Id가 import되어 있다면, import javax.persistence.Id로 수정하면 됩니다.
728x90