From b8b65e1fb22709fc5a6ec17ef377e123cefd7c16 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Tue, 18 Jul 2023 11:24:11 +0900 Subject: [PATCH] =?UTF-8?q?self()=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/foundation/AbstractEntity.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/cokr/xit/foundation/AbstractEntity.java b/src/main/java/cokr/xit/foundation/AbstractEntity.java index c707f0d..5de70a1 100644 --- a/src/main/java/cokr/xit/foundation/AbstractEntity.java +++ b/src/main/java/cokr/xit/foundation/AbstractEntity.java @@ -136,4 +136,13 @@ public abstract class AbstractEntity { public void setUseYN(String useYN) { this.useYN = useYN; } + + /**현재 객체를 반환한다. + * @param AbstractEntity 유형 + * @return 현재 객체 + */ + @SuppressWarnings("unchecked") + protected T self() { + return (T)this; + } } \ No newline at end of file