관리 메뉴

IT 컴퓨터공학 자료실

Value Object에 대해 본문

etc.. 기타 카테고리 2/영어 번역 & 일본어 번역

Value Object에 대해

윤맨1 2015. 7. 14. 18:57

In computer science, a value object is a small object that represents a simple entity whose equality is not based on identity

 

컴퓨터 공학에서 value objectidentity를 가지지 않은 entity 같은 작은 오브젝트를 말한다.

 

Being small, one can have multiple copies of the same value object that represent the same entity: it is often simpler to create a new object rather than rely on a single instance and use references to it.

 

작은 크기이면서, 하나의 value object가 여러 개의 copyentity 역할을 한다. 하나의 인스턴스로 참조를 사용하는 것보다 오브젝트를 사용하는 것이 더 간단하다.

 

Value objects should be immutable:[3] this is required for the implicit contract that two value objects created equal, should remain equal.

 

value object는 불변성을 지녀야 한다. 이것은 두 개의 value object가 암묵적인 계약으로 같게 만들어지고, 같게 남아야한다.



출처 : https://en.wikipedia.org/wiki/Value_object