[ํ”„๋กœ์ ํŠธ ํšŒ๊ณ ] 1์ฐจ ํ”„๋กœ์ ํŠธ๋ฅผ ๋งˆ์น˜๋ฉฐ
ยท
Project
์•ฝ 6~7์ฃผ ๊ฐ„ 2022.01.09 ~ 2022.02.17 + (~ 2022.02.22) ํŒ€ ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ–ˆ๋‹ค. (๊ธฐํš๋ถ€ํ„ฐ ๋ฐœํ‘œ๊นŒ์ง€ ๋‹ค ํฌํ•จ) ๊ฐœ๋ฐœํ•˜๋Ÿฌ ์˜จ 6๋ช…์ด์„œ ๊ธฐํš๋ถ€ํ„ฐ ๋””์ž์ธ, ์„ค๊ณ„, ๊ฐœ๋ฐœ, ๋ฐœํ‘œ๊นŒ์ง€ ๋‹ค ํ•ด์•ผ ๋ผ์„œ ํž˜๋“ค์—ˆ๊ณ  ๋นก๋นกํ•œ ์ผ์ •์ด์—ˆ๋‹ค.  ํ”„๋กœ์ ํŠธ๋ฅผ ํ•˜๋Š” ๋™์•ˆ ์—ฌ๋Ÿฌ ์ผ๋“ค์ด ์žˆ์—ˆ๊ณ  ํž˜๋“ค์—ˆ๋‹ค. ํ•˜์ง€๋งŒ ํ”„๋กœ์ ํŠธ๋ฅผ ๋ฌด์‚ฌํžˆ ๋งˆ์น˜๊ณ , ์ˆ˜์ƒ๊นŒ์ง€ ํ•˜๊ฒŒ ๋˜๋ฉฐ ์œ ์˜๋ฏธํ•œ ๊ฒฐ๊ณผ๋ฅผ ๋งŒ๋“ค์–ด ๋‚ธ ๊ฒƒ ๊ฐ™์•„ ๋ฟŒ๋“ฏํ•˜๋‹ค.  ์ •์‹ ์—†์ด ๊ฐœ๋ฐœํ•˜๋Š๋ผ ์ค‘๊ฐ„์ค‘๊ฐ„ ๊ธฐ๋ก์„ ํ•˜์ง€ ๋ชปํ–ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ํ”„๋กœ์ ํŠธ ๋๋‚˜๊ณ  ํž˜๋“ค์—ˆ๋˜ ์ ์ด๋‚˜ ์•„์‰ฌ์› ๋˜ ์ ๋“ค์ด ๋ง๊ฐ๋˜๊ธฐ ์‹œ์ž‘ํ•œ๋‹ค. ๊ทธ๋ž˜์„œ ์žŠ์–ด๋ฒ„๋ฆฌ๊ธฐ ์ „์— ์ง€๋‚œ 6~7์ฃผ ๊ฐ„์˜ ํ”„๋กœ์ ํŠธ ๊ณผ์ •์„ ๋Œ์•„๋ณด๊ณ ์ž ํ•œ๋‹ค.     ๐Ÿ“ข ํ”„๋กœ์ ํŠธ ์†Œ๊ฐœํ”„๋กœ์ ํŠธ ์ธ์› : 6๋ช… (ํ”„๋ก ํŠธ์—”๋“œ 3๋ช…, ๋ฐฑ์—”๋“œ 3๋ช… (๋ฐฑ์—”๋“œ 1๋ช…์ด ์ธํ”„๋ผ๋„..
[JPA] OneToMany ์–‘๋ฐฉํ–ฅ ๋งคํ•‘ ์‚ญ์ œ
ยท
์นดํ…Œ๊ณ ๋ฆฌ ์—†์Œ
์ด์ „ ์ฝ”๋“œ @OneToMany @JoinColumn(name = "teamId", insertable=false, updatable=false) private List teamMatchResultList; save, update, get์€ ์ž˜๋˜๋Š”๋ฐ delete๊ฐ€ ๋˜์ง€์•Š๋Š”๋‹ค... ์—๋Ÿฌ Column 'team_id' cannot be null ์ธํ„ฐ๋„ท์„ ์—ด์‹ฌํžˆ ๋Œ์•„๋‹ค๋‹ˆ๋ฉฐ ๊นจ๋‹ฌ์€ ๊ฒฐ๊ณผ @OneToMany(mappedBy = "team", cascade = CascadeType.ALL, orphanRemoval = true) private List teamMemberList = new ArrayList(); ์กฐ์ธ์นผ๋Ÿผ์ด ์•„๋‹ˆ๋ผ mappedBy๋กœ ๋งคํ•‘์„ ํ•ด์คฌ๋”๋‹ˆ ๋˜์—ˆ๋‹ค. ์ด๊ฒƒ ๋•Œ๋ฌธ์— ์—„์ฒญ ์‹œ๊ฐ„์„ ๋ฒ„๋ ธ๋‹ค. mapped..
[Spring/MySQL] SQL Error: 1064, SQLState: 42000 - MySQL ์˜ˆ์•ฝ์–ด ์‚ฌ์šฉํ•ด์„œ ๋‚˜๋Š” ์—๋Ÿฌ
ยท
Backend/Spring Boot
๐Ÿ’ป ์—๋Ÿฌ ๋ฉ”์‹œ์ง€You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match (distance, match_date, max_start_time, min_start_time, place_id) values ' at line 1     ๐Ÿ” ์›์ธํ…Œ์ด๋ธ”๋ช…์ธ match ๊ฐ€ MySQL ์˜ˆ์•ฝ์–ด์—ฌ์„œ ๋‚ฌ๋‹ค. MySQL ์˜ˆ์•ฝ์–ด ๋ชฉ๋ก์„ ๊ฒ€์ƒ‰ํ•ด์„œ ์ฐพ์€ ๊ฒฐ๊ณผ MATCH ๊ฐ€ ์žˆ๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์—ˆ๋‹ค. https://zetawiki.com/wiki/MySQL_%EC%98%88%EC%95%BD%EC%96%B4 MySQL ์˜ˆ์•ฝ์–ด - ์ œํƒ€์œ„..
SWEA - ์ด์ง„์ˆ˜ ํ‘œํ˜„
ยท
Algorithm/SWEA
๋น„ํŠธ๋งˆ์Šคํ‚น์œผ๋กœ ํ‘ธ๋Š” ๋ฌธ์ œ์ด๋‹ค. ํ’€์ด import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; /* * M์˜ ์ด์ง„์ˆ˜ ํ‘œํ˜„์˜ ๋งˆ์ง€๋ง‰ N๋น„ํŠธ๊ฐ€ ๋ชจ๋‘ 1๋กœ ์ผœ์ ธ ์žˆ๋Š”์ง€ ์•„๋‹Œ์ง€ ํŒ๋ณ„ */ public class Solution { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int T = Integer.parseI..
SWEA - ์ƒˆ๋กœ์šด ๋ถˆ๋ฉด์ฆ ์น˜๋ฃŒ๋ฒ•
ยท
Algorithm/SWEA
๊ทธ๋ƒฅ ํ’€ ์ˆ˜๋„ ์žˆ์ง€๋งŒ ๋น„ํŠธ๋งˆ์Šคํ‚น์„ ํ™œ์šฉํ•˜์—ฌ ํ’€ ์ˆ˜๋„ ์žˆ๋Š” ๋ฌธ์ œ package algo; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* * 1. ์–‘์„ธ๊ธฐ : ์ฒซ ๋ฒˆ์งธ N๋ฒˆ ์–‘, ๋‘ ๋ฒˆ์งธ 2N๋ฒˆ ์–‘ ... k๋ฒˆ์งธ kN๋ฒˆ์–‘ * 2. ํ˜„์žฌ ๋ณธ ์ˆซ์ž : ex) 1295์–‘ -> 1, 2, 9, 5 * 3. 0~9 ๋ชจ๋“  ์ˆซ์ž๋ฅผ ๋ณด๋ฉด ์–‘ ์„ธ๊ธฐ ๋ฉˆ์ถค */ public class swea_์ƒˆ๋กœ์šด๋ถˆ๋ฉด์ฆ์น˜๋ฃŒ๋ฒ• { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br =new Bu..
[Java] Window Eclipse ์ดํด๋ฆฝ์Šค ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ์„ค์ •ํ•˜๊ธฐ
ยท
Backend/Java
1. JDK ๋‹ค์šด๋กœ๋“œ & ์„ค์น˜ ์›ํ•˜๋Š” ๋ฒ„์ „์˜ JDK๋ฅผ ์œˆ๋„์šฐ ๋ฒ„์ „์œผ๋กœ ๋‹ค์šดํ•˜๊ณ  ์„ค์น˜ํ•œ๋‹ค. Oracle์ด๋‚˜ Azul์— ๊ฐ€๋ฉด ๋‹ค์šด๋ฐ›์„ ์ˆ˜ ์žˆ๋‹ค. ์—ฌ๊ธฐ์„œ๋Š” Azul zulu 11๋กœ ์„ ํƒํ•ด ์„ค์น˜ํ•ด๋ณด๋„๋ก ํ•˜๊ฒ ๋‹ค. https://www.oracle.com/kr/java/technologies/downloads/ Download the Latest Java LTS Free Subscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts. www.oracle.com https://www.azul.com/downloads/?package=jdk#zulu Azul Downloads ..
giraffe_
'๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก (13 Page)