탑크리에듀교육센터(www.topcredu.co.kr)에서 제공하는 자료입니다. 스프링프레임워크 & 마이바티스(Spring Framework, MyBatis) 9번째 자료입니다. AOP 충고(Advice),프로그래밍적인 방법을 통한 AOP 구현(ProxyFactory 이용)에 대하여 설명한 자료이므로 참고하시면 좋을 것 같습니다^^.
(Spring Data JPA)식별자(@Id, Primary Key) 자동 생성, @GeneratedValue의 strategy 속성,Ge...탑크리에듀(구로디지털단지역3번출구 2분거리)
탑크리에듀(http://www.topcredu.co.kr), 오라클자바커뮤니티(http://ojc.asia) 제공 JPA 기초강좌 입니다. 이번 강좌는 JPA에서의 DB에 따른 식별자(Primary Key) 값을 자동 생성하는 방법에 대해 알아봅니다. 식별자 자동생성은 @GeneratedValue 어노테이션으로 지정하는데 복합키 보다는 대행키(인공키, Artifitial Key) 사용을 권장하며 @GeneratedValue의 strategy 속성에 값을 지정해 여러 가지 식별자 자동 생성 전략을 선택할 수 있습니다. AUTO, TABLE, SEQUENCE, IDENTITY 값으로 지정하며 이 값들은 열거형인 GenerationType에 정의되어 있죠, 천천히 자료 살펴보시고 교육센터 홈페이지에 오시면 동영상 강좌 및 다양한 슬라이드 강좌 있으니 참조 하세요~
탑크리에듀교육센터(www.topcredu.co.kr)제공
15번째 스프링프레임워크 & 마이바티스(Spring Framework, MyBatis)자료입니다.
Spring JDBC에서 DB 접근하는 방법, Spring JDBC에서 DB 접근하는 방법 – jdbcTemplate, Maven, Gradle에서 오라클 설정에 대해 설명한 자료이니 많은 참고 바랍니다.
탑크리에듀(http://www.topcredu.co.kr) 제공 SQL튜닝, 오라클힌트 강좌 입니다. Subquery Factoring은 WITH구문을 이용하여 복잡한 쿼리문을 임시테이블에 저장하여 이를 이용하는 방법으로 반복되는 SELECT구문을 WITH구문에 한번만 정의하여 사용하여 쿼리 성능을 향상 시킬 수 있는 방법 입니다.
With구문은 SQL-99 표준이며 오라클에서는 9.2에 도입되었으며 복잡한 인라인뷰등을 WITH구문을 이용하여 한곳으로 몰아 가독성 또한 좋습니다.
오라클 옵티마이저는 WITH구문의 내용이 복잡할 경우 서브쿼리를 Global Temporary Table에 넣어 WITH구 블록이 여러곳에서 참조되는 경우 효율적으로 구성할 수도 있으며 Materialize 힌트는 서브쿼리 블록을 Global Temporary Table로 만들어서 사용하라는 힌트이며 Inline 힌트는 반대로 해당 WITH 쿼리블럭을 메인 쿼리블럭에 넣어 그대로 실행하라는 힌트 입니다.
본원에서는 SQL튜닝 온라인 화상강의도 무료로 진행하고 있으니홈페이지에서 확인 바랍니다. 감사합니다.
탑크리에듀교육센터(www.topcredu.co.kr)에서 제공하는 자료입니다. 스프링프레임워크 & 마이바티스(Spring Framework, MyBatis) 9번째 자료입니다. AOP 충고(Advice),프로그래밍적인 방법을 통한 AOP 구현(ProxyFactory 이용)에 대하여 설명한 자료이므로 참고하시면 좋을 것 같습니다^^.
(Spring Data JPA)식별자(@Id, Primary Key) 자동 생성, @GeneratedValue의 strategy 속성,Ge...탑크리에듀(구로디지털단지역3번출구 2분거리)
탑크리에듀(http://www.topcredu.co.kr), 오라클자바커뮤니티(http://ojc.asia) 제공 JPA 기초강좌 입니다. 이번 강좌는 JPA에서의 DB에 따른 식별자(Primary Key) 값을 자동 생성하는 방법에 대해 알아봅니다. 식별자 자동생성은 @GeneratedValue 어노테이션으로 지정하는데 복합키 보다는 대행키(인공키, Artifitial Key) 사용을 권장하며 @GeneratedValue의 strategy 속성에 값을 지정해 여러 가지 식별자 자동 생성 전략을 선택할 수 있습니다. AUTO, TABLE, SEQUENCE, IDENTITY 값으로 지정하며 이 값들은 열거형인 GenerationType에 정의되어 있죠, 천천히 자료 살펴보시고 교육센터 홈페이지에 오시면 동영상 강좌 및 다양한 슬라이드 강좌 있으니 참조 하세요~
탑크리에듀교육센터(www.topcredu.co.kr)제공
15번째 스프링프레임워크 & 마이바티스(Spring Framework, MyBatis)자료입니다.
Spring JDBC에서 DB 접근하는 방법, Spring JDBC에서 DB 접근하는 방법 – jdbcTemplate, Maven, Gradle에서 오라클 설정에 대해 설명한 자료이니 많은 참고 바랍니다.
탑크리에듀(http://www.topcredu.co.kr) 제공 SQL튜닝, 오라클힌트 강좌 입니다. Subquery Factoring은 WITH구문을 이용하여 복잡한 쿼리문을 임시테이블에 저장하여 이를 이용하는 방법으로 반복되는 SELECT구문을 WITH구문에 한번만 정의하여 사용하여 쿼리 성능을 향상 시킬 수 있는 방법 입니다.
With구문은 SQL-99 표준이며 오라클에서는 9.2에 도입되었으며 복잡한 인라인뷰등을 WITH구문을 이용하여 한곳으로 몰아 가독성 또한 좋습니다.
오라클 옵티마이저는 WITH구문의 내용이 복잡할 경우 서브쿼리를 Global Temporary Table에 넣어 WITH구 블록이 여러곳에서 참조되는 경우 효율적으로 구성할 수도 있으며 Materialize 힌트는 서브쿼리 블록을 Global Temporary Table로 만들어서 사용하라는 힌트이며 Inline 힌트는 반대로 해당 WITH 쿼리블럭을 메인 쿼리블럭에 넣어 그대로 실행하라는 힌트 입니다.
본원에서는 SQL튜닝 온라인 화상강의도 무료로 진행하고 있으니홈페이지에서 확인 바랍니다. 감사합니다.
The PMBOK (Project Management Body of Knowledge) is a collection of knowledge and practices within project management. It is produced by the Project Management Institute and revised every 4 years. It defines 9 knowledge areas: integration management, scope management, time management, cost management, quality management, human resource management, communications management, risk management, and procurement management. Each knowledge area includes several processes for planning and executing the project.
This document discusses building mobile apps using web technologies like HTML, CSS, and JavaScript. It covers responsive layouts using percentages and media queries, maintainable code practices like JavaScript best practices and libraries like jQuery, offline sync using local storage and network detection, and creating multi-platform apps using PhoneGap. It also provides an example of a demo app built with Backbone.js and discusses background sync challenges.
The document discusses MVC frameworks in JavaScript and covers topics like why use MVC, Backbone and Spine fundamentals, Backbone views, models, collections, routers and history, as well as tips and tricks for using Backbone including bootstrapping data, handling nested models, custom ajax requests, and testing with Jasmine. It provides code examples and explanations of concepts to illustrate how to build applications using the MVC pattern with Backbone.js.
MEAN 스택을 사용한 IoT 개발 예제를 설명합니다.
* MEAN 스택 기본 내용 소개
* Node.js와 Express를 활용한 간단한 CRUD 서버 작성 방법(아주 단순하지만 (인증을 제외한 나머지) RESTful 서버의 기본 내용을 구현함)
* MongoDB와 Mongoose ODM를 사용한 영속적인 자료 저장 방법
* AngularJS를 사용한 아주 간단한 모니터링 도구 구현(하지만 의존성 주입, 양방향 자료 결합, 라우팅 활용 방법이 모두 들어 있음)
* 모든 예제는 bitbucket(git 호스팅 서비스)에 공개되어 있음
탑크리에듀(www.topcredu.co.kr)제공
#7.스프링프레임워크 & 마이바티스(Spring Framework, MyBatis)자료는 SpEL을 이용한 Value Injection(XML방식),
SpEL을 이용한 Value Injection(어노테이션 방식),ref 태그를 이용한 Value Injection(ref local, ref bean, id, name의 차이) 등을 담은 자료입니다. 많은 도움되셨길 바랍니다.^^
교육/수강문의, 재직자/실업자 환급교육문의는 교육센터홈페이지(www.topcredu.co.kr)를 통해하여 하실 수 있습니다.
The PMBOK (Project Management Body of Knowledge) is a collection of knowledge and practices within project management. It is produced by the Project Management Institute and revised every 4 years. It defines 9 knowledge areas: integration management, scope management, time management, cost management, quality management, human resource management, communications management, risk management, and procurement management. Each knowledge area includes several processes for planning and executing the project.
This document discusses building mobile apps using web technologies like HTML, CSS, and JavaScript. It covers responsive layouts using percentages and media queries, maintainable code practices like JavaScript best practices and libraries like jQuery, offline sync using local storage and network detection, and creating multi-platform apps using PhoneGap. It also provides an example of a demo app built with Backbone.js and discusses background sync challenges.
The document discusses MVC frameworks in JavaScript and covers topics like why use MVC, Backbone and Spine fundamentals, Backbone views, models, collections, routers and history, as well as tips and tricks for using Backbone including bootstrapping data, handling nested models, custom ajax requests, and testing with Jasmine. It provides code examples and explanations of concepts to illustrate how to build applications using the MVC pattern with Backbone.js.
MEAN 스택을 사용한 IoT 개발 예제를 설명합니다.
* MEAN 스택 기본 내용 소개
* Node.js와 Express를 활용한 간단한 CRUD 서버 작성 방법(아주 단순하지만 (인증을 제외한 나머지) RESTful 서버의 기본 내용을 구현함)
* MongoDB와 Mongoose ODM를 사용한 영속적인 자료 저장 방법
* AngularJS를 사용한 아주 간단한 모니터링 도구 구현(하지만 의존성 주입, 양방향 자료 결합, 라우팅 활용 방법이 모두 들어 있음)
* 모든 예제는 bitbucket(git 호스팅 서비스)에 공개되어 있음
탑크리에듀(www.topcredu.co.kr)제공
#7.스프링프레임워크 & 마이바티스(Spring Framework, MyBatis)자료는 SpEL을 이용한 Value Injection(XML방식),
SpEL을 이용한 Value Injection(어노테이션 방식),ref 태그를 이용한 Value Injection(ref local, ref bean, id, name의 차이) 등을 담은 자료입니다. 많은 도움되셨길 바랍니다.^^
교육/수강문의, 재직자/실업자 환급교육문의는 교육센터홈페이지(www.topcredu.co.kr)를 통해하여 하실 수 있습니다.
5. 앱 설정값을 backbone.js 로 저장 해
보자!
전역적으로 사용될 설정값들. 예를 들어
run_count
theme
active_tab
..
6. 저장된 앱 셋팅을 불러오자
// 아마도 alloy.js(앱 시작)에 쓰일 코드
// 저장된 앱 설정값을 불러온다.
Alloy.Globals.settings = {
run_count: Ti.App.Properties.getString("run_count"),
theme: Ti.App.Properties.getString("theme"),
active_tab: Ti.App.Properties.getString("active_tab")
// etcs..
};
7. Backbone.model 을 쓰자
var settings = Alloy.createModel('settings');
// 저장된 앱 설정값을 불러온다.
settings.set({
run_count: Ti.App.Properties.getString("run_count"),
theme: Ti.App.Properties.getString("theme"),
active_tab: Ti.App.Properties.getString("active_tab")
});
// 이제 settings를 쓸 수 있다!
myTabGroup.setActiveTab( settings.get('active_tab') );
8. 이렇게 쓰고 싶어
var settings = Alloy.createModel('settings');
// 저장된 앱 설정값을 불러온다.
settings.fetch();
9. .save() 했던걸 .fetch() 했더니..
// 싱글톤으로 생성
var settings = Alloy.Models.instance('settings');
settings.save('theme', 'green');
// 앱이 종료 된것 처럼 완전 삭제
settings.clear();
delete settings;
// 재시작 된 것 처럼 처음부터 다시
var settings = Alloy.Models.instance('settings');
settings.fetch();
settings.get('theme'); // undefined
안되네?
10. 아 맞다 id
같은 id를 지정해야 같은걸 넣고 뺀다.
var settings = Alloy.Models.instance('settings');
// 아이디를 뭘로 하든 같은것만 쓰면 된다
settings.id = "WHAT_EVER_YOU_WANT";
settings.save('theme', 'green');
var settings = Alloy.Models.instance('settings');
settings.id = "WHAT_EVER_YOU_WANT";
settings.fetch();
settings.get('theme'); // 'green'
12. 먼저 model.attributes
var settings = Alloy.createModel('settings');
settings.set('run_count', 3);
settings.attributes.run_count; //3
settings.get('run_count'); // 3
일반적으로 쓰이는 모델 변수들은 실제로 model.attributes 에 저장됨
13. 하지만 id 는 특별한 property
각 모델의 identity를 결정하는 meta data
하지만 model.attributes 에도 저장됨
settings.set('id', 'WHAT_EVER_YOU_WANT');
settings.id; // WHAT_EVER_YOU_WANT
settings.get('id'); // WHAT_EVER_YOU_WANT
settings.id = 'WHAT_EVER_YOU_WANT';
settings.id; // WHAT_EVER_YOU_WANT
settings.get('id'); // undefined
14. id
동작은 model.id 기반으로 함
id는 일반 변수 중 하나로 지정되서 사용됨
햇갈? .idAttribute 기본값이 'id' 라서 햇갈햇반
15. model.idAttribute = _id;
settings.idAttribute = "_id";
settings.set('_id') = "WHAT_EVER_YOU_WANT";
settings.id; // 그래도 이건 아이디(변수 자체가 Backbone이 지정)
settings._id; // undefined
settings.attributes._id; // 이게 아이디로 사용
settings.get('_id'); // 이것도
settings.get('id'); // undefined
.idAttribute는 .attributes의 변수중 id로 사용할 변수의 이름을 지정
22. type: "properties" 결론
Alloy보단 Backbone을 믿는게..
-
내가 사용할 모델 프로퍼티와 id는 .get()과 .set()을 사용한다.
이것들은 model.attributes에 저장된다.
이것들의 기본값은 model.defaults 객체에 선언한다.
-
id를 제외한 특수 목적의 백본 변수 기본값은 Model.prototype에 직접
id는 model.id에도 저장되고 model.attributes.id에도 저장되서 햇반
23. model.cid 는 또 뭐야
백본이 알아서 생성하는 아이디
클라이언트에서만 유일한 값
같은 인스턴스인지 체크할때 유용