티스토리 뷰
http://stackoverflow.com/questions/1612334/difference-between-dto-vo-pojo-javabeans
Java Beans
-생성자 : class는 public default constructor를 가져야한다
-Getter/Setter for private data member : 클래스 속성들은 get, set, 그 외 함수(accessor, mutator mehotds라고도 한다)로 접근할 수 있어야한다.
-Serializable
•The class must have a public default constructor. This allows easy instantiation within editing and activation frameworks.
•The class properties must be accessible using get, set, and other methods (so-called accessor methods and mutator methods), following a standard naming convention. This allows easy automated inspection and updating of bean state within frameworks, many of which include custom editors for various types of properties.
•The class should be serializable. This allows applications and frameworks to reliably save, store, and restore the bean's state in a fashion that is independent of the VM and platform.
Plain Old Java Object(POJO)
-any simple object with no extra stuff
Value Object(VO)
-object such as java.lang.Integer that hold values
-represents itself a fix set of data
Data Transfer Object(DTO)
-to encapsulate data in a value object that could be transfered over the network
'program' 카테고리의 다른 글
자바빈(JAVA BEANS) (0) | 2013.10.03 |
---|---|
[java]Vector ArrayList 차이점 (0) | 2013.10.03 |
Java Code Convention (0) | 2013.10.02 |
Java/자바/정규식] 대소문자 구분 없이 문자열 바꾸기/치환; Replace String (0) | 2013.08.27 |
게시판 내용에서 HTML 태그 허용, 부분허용, 또는 치환 (0) | 2013.08.27 |