# 실전 예제 6 - 값 타입 매핑

추가 사항

* 값 타입 Address 객체를

![엔티티 설계&매핑](/files/-MehccRnPU6Jhig_SCNm)

이러한 타입을 UML에서 스테레오 타입이라고 한다.

equals를 오버라이딩할 때 필드가 아니라 getter로 해야한다!\
필드로 해버리면 프록시일 때는 계산이 안 되기 때문이다. getter로 호출해야 프록시 객체라도 진짜 객체로 접근할 수 있다!

공통적으로 validation rule을 적용할 수 있고, 주소를 출력하는 공통적인 메서드도 구현할 수 있다!

* UML

#### Unified Modeling Language : 개발자 간의 의사소통을 원활하게 하기 위해 표준화한 모델링


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://heunnajo.gitbook.io/jpa-basic/9./6.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
