Written by
spring-style
on
on
[Spring Boot] 상품 도메인 만들기
[Spring Boot] 상품 도메인 만들기
상품 객체 생성
java/hello/item/Domain 패키지 생성
java/hello/item/Domain/Item.java 생성
package hello.item.Domain; public class Item { // item 이름 public String name; // item id public long id; // item 가격 public long cost; // item 수량 public long count; // Getter / Setter public String getName() { return name; } public void setName(String name) { this.name = name; } public long getId() { return id; } public void setId(long id) { this.id = id; } public long getCost() { return cost; } public void setCost(long cost) { this.cost = cost; } public long getCount() { return count; } public void setCount(long count) { this.count = count; } }
from http://yon2ive.tistory.com/48 by ccl(A) rewrite - 2021-12-21 11:01:18