제가 이해한 것이 정확한지 궁금합니다.
해결됨
자바 ORM 표준 JPA 프로그래밍 - 기본편
1. 이렇게 표로 정리된 내용이 맞나요?
- JPA
- java
173만명의 커뮤니티!! 함께 토론해봐요.
해결됨
자바 ORM 표준 JPA 프로그래밍 - 기본편
1. 이렇게 표로 정리된 내용이 맞나요?
해결됨
자바 ORM 표준 JPA 프로그래밍 - 기본편
7분18초에 팀에서 멤버들을 List로 출력할때 위에서, em.flush()랑 em.clear()를 사용해야만 쿼리가 DB로 보내지고 @OneToMany(mappedBy = "team") 애노테이션 때문에 , members 리스트에 멤버객체가 저장되는건가요 ?? em.flush()랑 em.clear()를 사용하는 이유가 헷갈립니다. 플러쉬랑 클리어를 안해주니 팀에서 members 가 비어있더라구요.. 천천히 듣고있지만 이해가 안되서 여쭤봅니다 ㅜ.ㅜ
해결됨
실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
안녕하세요 정말 유익한 강의 잘듣고 있고요 항상 친절한 답변에 감사함을 느낍니다. 1.create시 createDto로 서비스로 넘어 온다면 아래에 방법중 어떤게 유지보수와 같은 측면에서 가장 나은 선택인가요? a. model mapper 나 mapstruct 라이브러리로 매핑한다. b. 서비스 계층에서 엔티티 빌더로 dto 값을 하나하나 세팅한다. c. 엔티티 생성자나 빌더에 dto 를 넘기고 그안에서 값을 세팅한다. 2.update시 updateDto로 서비스로 넘어 온다면 아래에 방법중 어떤게 유지보수와 같은 측면에서 가장 나은 선택인가요? a.강의에서 처럼 dto 값을빼서 전달한다. entity.change(updateDto.getA(),updateDto.getB()) b. 전체 Dto를 넘긴다. entity.change(updateDto) 3. update patch시에는 변경하지 않는값은 updateDto에 널로 들어온다면 모든 값을 하나씩 체크하면서 null 이 아닌것에대한 엔티티를 업데이트 해주는 방식이 최선인가요? 4.만약 엔티티에서 dto 로 변환시에는 보통 어떤 방식으로 실무에서 많이 하나요?
미해결
자바 ORM 표준 JPA 프로그래밍 - 기본편
시퀀스 방식에서 next value 50개를 먼저 가져오면 그 뒤에 실행되는 것들은 51번부터 시작한다고 하셨는데, 그러면 51번 시퀀스가 2, 3.. 50번 시퀀스보다 먼저 생성될 수 있게 되는 건가요?
미해결
실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
영상에서 UI 계층 (Controller)에서 Member Entity Object를 생성해서 파라미터로 넘겨주어 Service 계층에서 회원가입 처리를 하도록 코딩을 하셨는데, 원래 UI계층에서 Entity Object를 생성해서 Service 계층에서는 응용서비스 관련 로직만 짜는게 맞는건가요? 아니면 앞 영상에서 말씀하셨던, 너무 "Controller -> service -> Repository 로만 구조를 가져가려면 딱딱하고 불편한 점이 있다,"라는 말씀을 하셨던 부분에 해당해서 다르게 코딩하신 건가요?
미해결
실전! Querydsl
영한님 안녕하세요. JPQL 의 경우, From 절 내에서 SubQuery 를 지원하지 않으므로 Join 을 좀 더 활용하거나 또는 쿼리를 여러 개로 분해해서 첫번째 결과를 다음 쿼리의 파라미터에 넣어주는 방식으로 활용할 것을 권장해 주셨는데요. 혹시 From 절 내의 SubQuery 를 하나의 Query 로 뽑아낸 후, 결과 List 를 두번째 쿼리 안으로 집어 넣을 수도 있는 건가요? 다음 쿼리의 파라미터에 넣는다는 의미가 이러한 List 형태로 활용을 할 수 있는 것인지 좀 궁금합니다. 일부 강사님들 보면 보충이 필요하다고 생각되는 내용이 생기면 짧막하게 추가 영상도 넣어주시는 분들이 있던데 제 개인적으로는 From 절 내의 SubQuery 를 해결하는 예제를 하나 보여주시면 많은 분들에게 도움이 되지 않을까 생각이 듭니다. 실무에서 JPA 를 쓰기 전에 From 절 SubQuery 는 MyBatis 에서 워낙 많이 사용되던 용법이다보니 JPA 전환 과정에서 이 부분을 막연해 하는 개발자들을 많이 보이는 것 같습니다.
해결됨
실전! Querydsl
private BooleanBuilder ageCond (Integer ageGoe , Integer ageLoe) { BooleanBuilder booleanBuilder = new BooleanBuilder() ; return booleanBuilder .and(ageGoe(ageGoe)) .and(ageLoe(ageLoe)) .and(teamNameEq( "teamB" )) ; } private BooleanExpression usernameEq (String username) { return isEmpty (username) ? null : member . username .eq(username) ; } private BooleanExpression teamNameEq (String teamName) { return isEmpty (teamName) ? null : team . name .eq(teamName) ; } private BooleanExpression ageGoe (Integer ageGoe) { return ageGoe == null ? null : member . age .goe(ageGoe) ; } private BooleanExpression ageLoe (Integer ageLoe) { return ageLoe == null ? null : member . age .loe(ageLoe) ; } ageCond 처럼 여러 조건 조합시 null처리를 조금 이쁘게 하고 싶은데 다른 생각이 안나서 booleanBuilder로 해봤더니 별 문제는 없는데요, 혹시 다른 깔끔한 방법이 있을까요?
해결됨
실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
안녕하세요. 강사님 Abstract 엔티티 클래스를 리턴 받은 후 상속된 클래스를 어떻게 가져와야 좋은 방법일까요? 예를들어, OrderItem에서 Item을 상속한 Book 클래스를 가져오고 싶을 때 Book book = (Book) orderItem.getBook(); 이런 식으로 형변환을 하여 Book에 접근할지 또는, OrderItem과 Item을 연관관계 매핑 시 Item대신 Book엔티티를 매핑을 하여 Book book = orderItem.getBook()으로 매핑을 할지 고민입니다. 어떤 방법이 괜찮을지 혹은 더 권장되는 방식이 있을까요? 감사합니다.
미해결
[텐서플로2] 파이썬 머신러닝 완전정복 - 마라톤 기록예측 프로젝트
제가 텐서를 영상보고 따라하니 pip install tensorflow를 하니 자동으로 2.0버전으로 설치되었다가 Session이 안되는걸 보고 2.0이 설치된걸 알았습니다 그래서 uninstall하고 난뒤 pip install tensorflow-gpu==1.15 를 설치를 하였는데 설치중에 예외 Traceback이 발생하여서 설치가 안되네요 어떻게 해결을 해야할까요? ㅠㅠ
미해결
자바 ORM 표준 JPA 프로그래밍 - 기본편
테이블이 동적으로 생성되지만, 테이블 구조는 동일할 경우에 JPA 사용이 가능한가요?
미해결
실전! Querydsl
안녕하세요 김영환님 스프링부트와 jpa 모든 강의들 너무나 잘 들었습니다 그동안 2tier방식의 앱(oracle, PowerBuilder) 만을 개발하다 스프링부트와 data jpa를 이용한 개발을 하려니 참 막막 했는데 개념을 잡는데 많은 도움이 되었습니다 ^^ 한가지 질문을 드리고자 합니다 데이타베이스 관점에서 여러 테이블에서 필요에 맞는 공통 코드들을 하나의 테이블에 모아놓은 후 구분 코드와 세부 코드해서 설계를 해보려 하는데 이럴경우 엔티티 설계를 어떻게하는것이 좋은 방법인지 궁금합니다. (enum 이나 각 코드에 맞는 엔티티를 다 생성하는것이은 너무 많아보여서요) 혹시 참고 할 만한 자료가 있음 추천도 부탁드립니다^^ 좋은 하루 되세요
미해결
자바 ORM 표준 JPA 프로그래밍 - 기본편
트랜잭션 내 쿼리들이 한 번에 commit될 시, 쿼리들 간에 수행 순서가 보장이 되나요?
미해결
자바 ORM 표준 JPA 프로그래밍 - 기본편
강의 내용과 벗어난 내용이고 다소 사적인 영역에 대한 질문일 수 있기에, 이런 질문을 드려도 되나 쓸까 말까 고민하다가 질문드려봅니다. 김영한님의 JPA 강의를 들으면서 정말많이 알아가는데요 문득 궁금한 부분이 김영한님은 어떤방식으로 이런 지식을 습득했을까 하는 생각이 들었습니다. 저야 그냥 금액을 지불하고 편하게 들으면서 적어보고 이해안되면 다시 돌려보면 그만이지만.. 이런 강의를 만들기위해 하이버네이트나 JPA의 구체적인 동작원리를 어떤 경로로 습득하실 수 있으셨는지 혹은 어떤 방식으로 평소에 공부를 하시나요?? jpa나 spring 프로젝트를 개발하는 팀에 영어로 된 공식문서나 해외서적 같은부분을 많이 참고하시는지 궁금합니다!
미해결
실전! Querydsl
안녕하세요! QueryDsl 강의 엊그제 완강하였습니다~! 이제 곧 회사에서 QueryDsl 을 적용하려 하는데 정말 큰 도움이 되었습니다 감사합니다! 이번에 드릴 질문은 다름 아니라 AttributeConverter에 관한 질문입니다! 데이터베이스에 Json 타입의 필드를 AttributeConverter를 사용해 커스텀한 클래스로 받아왔을때 트랜잭션이 끝날때 더티체킹이 일어나 업데이트를 하는 이슈가 존재했습니다. 이 때 더티체킹이 일어나는 이유는 어떤 상황 때문일까요? 그리고 이 상황에서 .equals를 오버라이딩해서 더티체킹을 해제해주는 방안을 찾았는데 이 방법 외에 더 괜찮은 방법이 있을까요? 혹시 몰라 제가 참고한 링크도 남기겠습니다..! https://medium.com/@paul.klingelhuber/hibernate-dirty-checking-with-converted-attributes-1b6d1cd27f68 그리고 하나 더 궁금한 것이 AttributeConverter의 동작이 DB에서 find할때는 convertToEntityAttribute, DB에 flush 할때는 convertToDatabaseColumn 메소드가 실행 될 것이라 생각했는데 find만 하더라도 두 메소드를 여러번 왔다갔다 하는데 이 동작방식에 대한 궁금증이 있습니다! 항상 좋은 강의와 답변에 감사드립니다!
해결됨
실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
안녕하세요 매번 친절한 답변 감사합니다. 정말 정말 도움이 되고 있습니다. 이번에는 이런경우에도 jpa 사용이 효율적인지 또는 가능한지를 묻고 싶어서 질문 드립니다. 프로젝트 구조상 마스터와 서브디비 여러개로 구성되어있을때 디비정보가 딱 정해진게 아니라 특정 리퀘스트마다 마스터 디비 를 조회를 통해 서브디비 정보를 얻어와 (ip는 각각 다르지만 테이블 구조,데이터베이스 이름등은 서브디비 모두 동일하다는 가정하에) 동적으로 서브디비와 커넥션을 맺어 사용해야 하는데 이 상황에서도 jpa를 활용가능 할까요 또는 효율적일 까요? 이런경우에서도 jdbc 커넥션풀이 성능에 도움을 줄 수 있을까요?
미해결
자바 ORM 표준 JPA 프로그래밍 - 기본편
안녕하세요 도사님! 오랜만에 다시 뵙습니다. 강의 내용 중에 "데이터베이스의 부하를 줄이기 위해 쿼리에서의 연산을 최소화하고 데이터만 왔다갔다 하는 형태로 하고 연산은 애플리케이션 서버단에서 처리하는게 좋다." 라고 말씀하신 내용이 기억 납니다. 제가 아직 감이 안잡혀서 그러는데 쿼리에서 어느정도의 연산까지 허용하는게 좋을까요? 상황마다 다를 수 있겠지만 그래도 도사님께서 간단하게 * SUM() 이정도는 써도 된다. * SUM(IF(..)) 이런건 애플리케이션 서버에서 하는게 좋다. * 어떤 기준을 두고서 쿼리에서 어느 정도의 연산까지 허용할 것인가를 알려 주시면 감사하겠습니다.
미해결
자바 ORM 표준 JPA 프로그래밍 - 기본편
제 환경은 Mac OS Mojavc 입니다. H2 database 1.4.200 버젼 설치 후 localhost:8082 접속해서 JDGC_URL에 jdbc:h2:tcp://localhost/~/test , jdbc:h2:~/test 두가지 넣어서 해봣는데 Database "/Users/test" not found, either pre-create it or allow remote database creation (not recommended in secure environments) 위와 같은 에러가 발생합니다. OS 관렴 문제인가 싶어서 homebrew를 통해 h2를 설치해 실행해보니 Connection is broken: "java.net.ConnectException: Connection refused (Connection refused): localhost" [90067-200] 위와 같은 에러가 발생 합니다.
해결됨
실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
안녕하세요 항상 정말 강의 잘듣고 있고 평소에 쓰면서 고민했던 부분을 설명해주시고 그리고 질문으로 답해주셔서 정말 도움이 많이 되고 있습니다. orderService에서 orderRepository,memberRepository,itemRepository 처럼 서비스 계층에서 의존성으로 다른 레파지토리를 가지는게 나은건지 아님 서비스로(orderService,,) 가져가는게 나은건지 고민이 됩니다.혹시 실무에서 보통 서비스와 레파지토리 둘중 선택하는 기준이나 각각의 장단점이 있을까요?
미해결
[OpenCV] 파이썬 딥러닝 영상처리 프로젝트 - 손흥민을 찾아라!
dlib을 설치하는데 계속 이런 에러가 떠서 찾아보고 해봤는데 계속 안되는데 왜 그런지 알려주실 수 있을까요.. (ComputerVision) usang-in-ui-MacBook-Pro:~ usang-in$ pip3 install dlib Collecting dlib Using cached https://files.pythonhosted.org/packages/63/92/05c3b98636661cb80d190a5a777dd94effcc14c0f6893222e5ca81e74fbc/dlib-19.19.0.tar.gz Building wheels for collected packages: dlib Running setup.py bdist_wheel for dlib ... error Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-wheel-ecxo61rx --python-tag cp36: running bdist_wheel running build running build_py package init file 'dlib/__init__.py' not found (or not a regular file) running build_ext Building extension for Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 03:02:14) Invoking CMake setup: 'cmake /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/lib.macosx-10.9-x86_64-3.6 -DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -DCMAKE_BUILD_TYPE=Release' -- The C compiler identification is unknown -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- broken CMake Error at /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program. It fails with the following output: Change Dir: /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/temp.macosx-10.9-x86_64-3.6/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_475b6/fast && xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:3 (project) -- Configuring incomplete, errors occurred! See also "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/temp.macosx-10.9-x86_64-3.6/CMakeFiles/CMakeOutput.log". See also "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/temp.macosx-10.9-x86_64-3.6/CMakeFiles/CMakeError.log". Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py", line 261, in <module> 'Topic :: Software Development', File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup return distutils.core.setup(**attrs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 188, in run self.run_command('build') File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py", line 135, in run self.build_extension(ext) File "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py", line 172, in build_extension subprocess.check_call(cmake_setup, cwd=build_folder) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/lib.macosx-10.9-x86_64-3.6', '-DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1. ---------------------------------------- Failed building wheel for dlib Running setup.py clean for dlib Failed to build dlib Installing collected packages: dlib Running setup.py install for dlib ... error Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-record-m5vnrry6/install-record.txt --single-version-externally-managed --compile: running install running build running build_py package init file 'dlib/__init__.py' not found (or not a regular file) running build_ext Building extension for Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 03:02:14) Invoking CMake setup: 'cmake /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/lib.macosx-10.9-x86_64-3.6 -DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -DCMAKE_BUILD_TYPE=Release' -- The C compiler identification is unknown -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- broken CMake Error at /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program. It fails with the following output: Change Dir: /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/temp.macosx-10.9-x86_64-3.6/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_0561c/fast && xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:3 (project) -- Configuring incomplete, errors occurred! See also "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/temp.macosx-10.9-x86_64-3.6/CMakeFiles/CMakeOutput.log". See also "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/temp.macosx-10.9-x86_64-3.6/CMakeFiles/CMakeError.log". Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py", line 261, in <module> 'Topic :: Software Development', File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup return distutils.core.setup(**attrs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/install.py", line 545, in run self.run_command('build') File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py", line 135, in run self.build_extension(ext) File "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py", line 172, in build_extension subprocess.check_call(cmake_setup, cwd=build_folder) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/lib.macosx-10.9-x86_64-3.6', '-DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1. ---------------------------------------- Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-record-m5vnrry6/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/ You are using pip version 10.0.1, however version 20.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
해결됨
실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
질문에서 처럼 두 도메인의 서비스와 두 도메인의 서비스와 레파지토리 SAVE 메서드의 리턴을 하나는 VOID 하나는 id 로 준 이유가 있을까요?