개발

POJO(Plain Old Java Object)

Mr. Dingku 2012. 8. 20. 11:32

Plain Old Java Object, 줄여서 POJO라고도 하는데 말 그대로 해석을 하면 오래된 방식의 간단한 자바 객체라는 말로서 J2EE 등의 중량 프레임워크들을 사용하게되면서 해당 프레임워크에 종속된 "무거운" 객체를 만들게 된 것에 반발해서 사용하게된 용어이다.

2000년 9월 마틴 파울러, 레베카 파슨, 조쉬 맥킨지 등이 사용하기 시작한 용어로서 다음과 같이 그 기원을 밝히고 있다.


"We wondered why people were so against using regular objects in their systems and concluded that it was because simple objects lacked a fancy name. So we gave them one, and it's caught on very nicely."

- Martin Fowler


POJO라는 용어는 이후에 주로 특정 자바 모델이나 기능, 프레임워크 등을 따르지 않는 자바 객체를 지칭하는 말로 사용되었다.


출처 :  http://ko.wikipedia.org/wiki/POJO


* POJO의 필수 요소

- light-weight(possibly) 

- flexible

- simple 

- supported by separate optional component such as Hibernate or spring 

728x90