์ƒˆ์†Œ์‹

Back-End/JPA

[Error] JPA Cannot resolve table

  • -

 

 

[Error] JPA Cannot resolve table

 

IntelliJ๋กœ springboot, jpa, querydsl ์ž‘์—…์„ ํ•˜๋‹ค ๋ณด๋ฉด ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๋ฅผ ๋งˆ์ฃผํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.

[Error] JPA Cannot resolve table

 

์ด๋Ÿฌํ•œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ์ด์œ ๋Š” IntelliJ๊ฐ€ ์ •๋ง ์„ธ๋ฐ€ํ•˜๊ฒŒ ๊ฒ€์‚ฌ๋ฅผ ํ•ด์ฃผ๊ธฐ ๋•Œ๋ฌธ์— ๋ฐœ์ƒํ•˜๋Š” ์—๋Ÿฌ์ž…๋‹ˆ๋‹ค. ์ด ์—๋Ÿฌ๋Š” ์žˆ์–ด๋„ ์‚ฌ์‹ค ๊ฐœ๋ฐœ์„ ์ง„ํ–‰ํ•˜๋Š”๋ฐ ๋ฌธ์ œ ๋  ๊ฒƒ์ด ์—†์ง€๋งŒ, ๊ฐœ๋ฐœ์ž๋ผ๋ฉด.. ๋งค์šฐ ๋ถˆํŽธํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค. (์ €๋งŒ.. ๊ทธ๋Ÿฐ๊ฐ€์š”..? ๐Ÿ˜‚๐Ÿ˜‚) ๊ทธ๋ ‡๊ธฐ ๋•Œ๋ฌธ์— ์ €๋Š” ์ˆจ๊น€ ์ฒ˜๋ฆฌ๋ฅผ ํ•˜๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.


 

#1. Settings

Settings > Editor > Inspections > Unresolved database references in annotations ์ฒดํฌ ํ•ด์ œ

 

Settings > Editor > Inspections > Unresolved database references in annotations ์ฒดํฌ ํ•ด์ œ

 

์ ์šฉ ํ›„ ๋‹ค์‹œ ํ™•์ธ์„ ํ•ด๋ณด๋ฉด ์ •์ƒ์ ์œผ๋กœ ์—๋Ÿฌ๊ฐ€ ์ œ๊ฑฐ(์ˆจ๊น€)๋œ ๊ฒƒ์œผ๋กœ ๋ณด์ž…๋‹ˆ๋‹ค.

'Back-End > JPA' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[JPA] JPA (Java Persistence API) ?!  (0) 2023.03.02
Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค. ๐Ÿ˜Š

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ๐Ÿ‘