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
- Exception
- Spring Boot
- error
- Docker
- git
- Eclipse
- IntelliJ
- Tomcat
- jpa
- myBatis
- oracle
- spring
- 문서
- MSSQL
- SpringBoot
- Python
- PostgreSQL
- 설정
- Core Java
- Open Source
- AJAX
- maven
- Source
- 오픈소스
- Thymeleaf
- MySQL
- ubuntu
- JDBC
- STS
- JavaScript
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