탑크리에듀교육센터(www.topcredu.co.kr)제공
스프링프레임워크 & 마이바티스(Spring Framework, MyBatis)
16번째 자료입니다. 참고하시어 많은 도움되셨길 바랍니다.
교육 및 수강문의/기타문의사항은 홈페이지(www.topcredu.co.kr)를 통하여 하실 수 있습니다.^^
탑크리에듀교육센터(www.topcredu.co.kr)제공
스프링프레임워크 & 마이바티스(Spring Framework, MyBatis)
16번째 자료입니다. 참고하시어 많은 도움되셨길 바랍니다.
교육 및 수강문의/기타문의사항은 홈페이지(www.topcredu.co.kr)를 통하여 하실 수 있습니다.^^
Industry’s first Wi-Fi services strategy and solutions to help carriers capitalize on managed service market.
New “Smart Wi-Fi” 802.11a/b/g/n products for home, hotspot and enterprise markets
The Benefits and Challenges of Being Connected: Living, Learning, and Teachin...Richard Beach
Presentation: The Benefits and Challenges of Being Connected: Living, Learning, and Teaching in Virtual Spaces, Athens, Georgia Regional Public Library, October 8, 2015
JPA의 기본 개념에 대해 설명하고 MyBatis로 작성된 애플리케이션을 JPA로 리팩토링하는 과정을 단계별로 살펴봅니다.
목차
1. MyBatis
2. Why JPA?
3. MyBatis to JPA
- JPA 설정
- Entity
- 연관관계 설정
- Repository
- 애플리케이션에서의 사용
대상
- MyBatis를 실무에 사용하고 있으면서 JPA 도입을 고려하고 있는 백엔드 개발자
- JPA를 적용하면서 어려움을 겪었거나 JPA를 실제 적용하는 과정이 궁금한 개발자
NHN Forward 2018 컨퍼런스에서 발표한 자료입니다.
http://forward.nhnent.com/
MyBatis로 작성된 예제 프로그램을 JPA로 마이그레이션하는 방법에 대해 설명합니다.
cf.) https://github.com/nhnent/hands-on-labs.java.mybatis-to-jpa
갑을병정 산업구조에서 갑돌이의 잦은 요구사항 변경 통보를 받아보셨을 겁니다. 사람들에게 받은 스트레스를 풀려고 '그래! 난 개발자닌깐' 하고 자리에 앉아서 코드를 짜는데 반복적인 작업을 하다보면 ‘내가 이걸 왜 하고 있나’ 라는 생각까지 들기도 합니다.
안드로이드 작업을 하다보면 다음과 같은 반복적인 작업을 하는 것을 느꼈을 겁니다.
반복적인 보일러(Boiler)코드를 줄일 수 있는 오픈소스를 소개하고자 합니다.
9. ContentProvider
IStructuredContentProvider : table, list
Object[] getEmement(Object)
ITreeContentProvider : tree
Object[] getChildren(Object) : 자식 객체 리턴
getParent(Object) : 부모객체 리턴
hasChildren(Object) : 자식 객체 유무
getEmentnt : 최상위 부모 노드의 자식 리턴
10. LabelProvider
ILabelProvider -> Tree, List
getImage(Object) 해당 이미지 리턴
getText(Object) 해당 텍스트 리턴
ITableLabelProvider -> Table
getColumnImage(Object, int)
getColumnText(Object, int)
11. Tree Viewer 소개
ILabelProvider
TreeViewer
사용 getImage(Object)
getText(Object)
setContentProvider()
setLabelProvider()
사용
ITreeContentProvider
getChildren(Object)
사용 Domain
getParent(Object)
사용 Data
inputChange(Object)
14. Viewer 최적화
Lazy Content Provider
데이터를 보여지는 부분 처리
tableViewer.setItemCount(sourceData.size());
뷰어의 스크롤 크기 지정
15. Image, Font, Color Registry 소개
JFaceResources - JFace에 대한 상수정의
ImageRegistry - 자주 사용하고 여러곳에서 공유되는 것들 위
주로 사용
-시스템 마다 이미지를 핸들링 할수 있는 한 개
가 있으므로 주의 필요
FontRegistry
ColorRegistry
17. Action과 Contribution 소개
운영체
View와 Control분리 제
Display
Event 메시지
public class StatusAction extends Action { Queue
public StatusAction() {
super("&Trigger@Ctrl+T", AS_PUSH_BUTTON);
Application
setToolTipText("Trigger the Action"); Window
setImageDescriptor(
ImageDescriptor.createFromFile(
this.getClass(), "property.png"));
Action
}
public void run() {
System.out.println("The status action has fired."); Contirib
Run
} ution 호출
}
19. Wizard 소개
// wizard page 페이지 시작
TestWizard wizard = new
TestWizard();
WizardDialog dialog = new
WizardDialog(getShell(), wizard);
// wizard 정의
class TestWizard extends Wizard {
// page 정의
public void addPages() {
addPage(new Wizard1Page());
addPage(new Wizard2Page());
}
// 종료시 해야할 일 정의
public boolean performFinish() {
..
}
}
21. 실습
초기화면이 로드되면
아래의 예제 데이터가
로드 된다.
이름에 값을 입력하고
검색 버튼을 누르면 이
름으로 테이블에 있는
데이터를 검색하고 데
이터가 있다면 선택한
다
아래 선택 버튼을 클릭
하면 선택팝업이 뜨면
서 상세정보출력한다
예제데이터(cvs) 이름,나이,전화번호,주소
톰,47,010-1234-1235,미국헐리우드
제리,48,010-1234-1234,한국
놀부,500,02-1234-1231,한국
흥부,498,02-2345-3456,한국