강의

멘토링

커뮤니티

Inflearn Community Q&A

smjo174063's profile image
smjo174063

asked

Create your first server with Java and Spring Boot, from development to deployment, easily! [All-in-one server development package]

Lecture 24. Creating an Entity Class Corresponding to the User Table

JPA을 사용하려면protected UserDto(){}을만들어줘야한다고 하셨는데 저는 protected UserDto(){}을 만들어주면 오류가 나네요 이유가 뭘까요? ;

Written on

·

323

0

javaspringawsmysqlspring-bootjpa

Answer 2

0

smjo174063님의 프로필 이미지
smjo174063
Questioner

해결했네요 감사합니다

0

lannstark님의 프로필 이미지
lannstark
Instructor

안녕하세요 성문님! 답답하셨을 텐데 질문 올려주셔서 감사합니다~ 😊

제가 확인해보기로는 현재 UserDto 와 같은 DTO 클래스를 Entity 로 만들려고 하시면서 벌어진 일 같습니다!

 

 

UserDto 대신에 User 클래스를 사용해 엔티티를 만들어보시면 좋을 것 같습니다!

답변이 도움이 되었으면 좋겠습니다. 감사합니다! 🙏

smjo174063's profile image
smjo174063

asked

Ask a question