[ABAP] Domain / Data Element

๐ŸŒ Domain ABAP Dictionary์—์„œ ์ฐธ์กฐํ•˜๋Š” ๊ฒƒ์ด ์—†๋Š” ์ตœ์†Œ์˜ ๋‹จ์œ„ ํ•„๋“œ์˜ ๊ธฐ์ˆ ์ ์ธ ์†์„ฑ(Data Type, ๊ธธ์ด)์„ ์ •์˜ํ•˜๋ฉฐ, Data Element์— ํ• ๋‹น๋˜์–ด ์‚ฌ์šฉ๋จ ๋ชจ๋“  ํ…Œ์ด๋ธ”๊ณผ Structure์˜ ํ•„๋“œ์—๋Š” Domain์ด ํ• ๋‹น๋จ Domain์ด ๋ณ€๊ฒฝ๋˜๋ฉด ํ…Œ์ด๋ธ” ํ•„๋“œ์—๋„ ์ž๋™์œผ๋กœ ๋ฐ˜์˜ Value Range Domain์ด ๊ฐ€์งˆ ์ˆ˜ ์žˆ๋Š” ๊ฐ’ ์ง€์ • ๐ŸŒ Data Element ํ…Œ์ด๋ธ” ํ•„๋“œ์˜ ๋ชจ๋“  ์ •๋ณด๋ฅผ ๊ฐ€์ง„ ABAP Dictionary ์˜ค๋ธŒ์ ํŠธ... Continue reading...

[์ž๋ฐ” ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ฌธ์ œํ’€์ด] ํŠน์ •๋ฌธ์ž ๋’ค์ง‘๊ธฐ

๐Ÿ”’ ์ž๋ฐ” ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ฌธ์ œํ’€์ด ๐Ÿ” ํŠน์ • ๋ฌธ์ž ๋’ค์ง‘์–ด์„œ ์ถœ๋ ฅํ•˜๊ธฐ ๋ฌธ์ž์—ด์„ ์ž…๋ ฅ ๋ฐ›์€ ํ›„, ํŠน์ˆ˜๋ฌธ์ž๋ฅผ ์ œ์™ธํ•œ ์•ŒํŒŒ๋ฒณ๋งŒ ๋’ค์ง‘์–ด์„œ(์—ญ์œผ๋กœ) ์ถœ๋ ฅํ•ด๋ณด์ž. toCharArray()๋ฅผ ์ด์šฉํ•œ [์ž๋ฐ” ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ฌธ์ œํ’€์ด] ๋‹จ์–ด ๋’ค์ง‘์–ด์„œ ์ถœ๋ ฅํ•˜๊ธฐ ๋‘ ๋ฒˆ์งธ ํ’€์ด๋ฐฉ๋ฒ• ์ฐธ๊ณ !! import java.util.ArrayList; import java.util.Scanner; class Main { public String solution(String str){ String answer; char[] ch = str.toCharArray(); int lt =... Continue reading...

์ŠคํŠธ๋ฆผ(Stream)

์ŠคํŠธ๋ฆผ(Stream) ๋ฐฐ์—ด, ์ปฌ๋ ‰์…˜์„ ๋Œ€์ƒ์œผ๋กœ ์—ฐ์‚ฐ์„ ์ˆ˜ํ–‰ ๋ฐฐ์—ด, ์ปฌ๋ ‰์…˜์— ์ €์žฅ๋˜์–ด ์žˆ๋Š” ์š”์†Œ๋“ค์„ ํ•˜๋‚˜์”ฉ ์ฐธ์กฐํ•˜๋ฉฐ ๋ฐ˜๋ณต์ ์ธ ์ฒ˜๋ฆฌ๋ฅผ ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ•จ for-each ๋ฌธ์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ ์ฝ”๋“œ์˜ ์–‘์ด ๋งŽ์•„์ง€๋ฉด ๋กœ์ง์ด ๋ณต์žกํ•ด์ง€๊ณ , ๋ฉ”์†Œ๋“œ๋ฅผ ๋‚˜๋ˆŒ ๊ฒฝ์šฐ ๋ฃจํ”„๋ฅผ ์—ฌ๋Ÿฌ๋ฒˆ ๋„๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ์Œ ์ŠคํŠธ๋ฆผ(Stream) ์‚ฌ์šฉ ์‹œ ์ฝ”๋“œ์˜ ์–‘์„ ์ค„์ด๊ณ  ๊ฐ„๊ฒฐํ•˜๊ฒŒ ํ‘œํ˜„ ํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ๋ณ‘๋ ฌ์ฒ˜๋ฆฌ๊ฐ€ ๊ฐ€๋Šฅ ์ž๋ฃŒ์˜... Continue reading...

[SpringBoot] ์Šคํ”„๋ง๋ถ€ํŠธ + JPA๋ฅผ ์ด์šฉํ•œ CRUD ๊ตฌํ˜„ 6. ์‚ญ์ œ ๊ธฐ๋Šฅ ๋งŒ๋“ค๊ธฐ

๐ŸŽ‹ js ๋จผ์ €, ์ˆ˜์ • ํŽ˜์ด์ง€์— ์‚ญ์ œ ๋ฒ„ํŠผ์„ ๋„ฃ์–ด์ฃผ์ž. src/main/resources/templates/posts-update.mustache <button type="button" class="btn btn-danger" id="btn-delete">์‚ญ์ œ</button> src/main/resources/static/js/app/index.js var main = { init : function(){ ... $('#btn-delete').on('click', function(){ _this.delete(); }); }, save : function(){ ... }, update : function(){ ... }, delete : function(){ var id = $('#id').val(); $.ajax({ type: 'DELETE', url: '/api/posts/'+id,... Continue reading...

[SpringBoot] ์Šคํ”„๋ง๋ถ€ํŠธ + JPA๋ฅผ ์ด์šฉํ•œ CRUD ๊ตฌํ˜„ 5. ์ˆ˜์ • ๊ธฐ๋Šฅ ๋งŒ๋“ค๊ธฐ

๐ŸŽ‹ Controller src/main/java/com/test/spring/boot_crud/web/PostsApiController.java package com.test.spring.boot_crud.web; import com.test.spring.boot_crud.service.posts.PostsService; import com.test.spring.boot_crud.web.dto.PostsResponseDto; import com.test.spring.boot_crud.web.dto.PostsSaveRequestDto; import com.test.spring.boot_crud.web.dto.PostsUpdateRequestDto; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*; @RequiredArgsConstructor @RestController public class PostsApiController { private final PostsService postsService; @PostMapping("/api/posts") public Long save(@RequestBody PostsSaveRequestDto requestDto) { return postsService.save(requestDto); } @PutMapping("/api/posts/{id}") public Long update(@PathVariable Long id, @RequestBody PostsUpdateRequestDto requestDto) { return postsService.update(id, requestDto);... Continue reading...