투명성

· DDD
참조 투명성 관련 문제 public class OrderLine { privateProduct product; private Money price; private int quantity; public OrderLine(Product product, Money price, int quantity) { this.product = product; this.price = price; this.quantity = quantity; } } Product product = new Product("티셔츠"); Money price = new Money(1000); OrderLine line = new OrderLine(product, price, 2); // OrderLine에 price값이 변경될 수 있다. pric..
beekei
'투명성' 태그의 글 목록