From e42d1b190860d0e9acefadf6b6a8121c9f8f6759 Mon Sep 17 00:00:00 2001 From: byung eun park Date: Thu, 19 Sep 2019 18:49:06 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=A0=EC=A0=95=EB=B3=B4=EB=84=88=EC=8A=A4?= =?UTF-8?q?=20=EC=83=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../special/entity/FixBonusEntity.java | 46 +++++++++++++++++++ .../repository/FixBonusRepository.java | 7 +++ .../special/service/FixBonusService.java | 32 +++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 src/main/java/com/totopia/server/modules/special/entity/FixBonusEntity.java create mode 100644 src/main/java/com/totopia/server/modules/special/repository/FixBonusRepository.java create mode 100644 src/main/java/com/totopia/server/modules/special/service/FixBonusService.java diff --git a/src/main/java/com/totopia/server/modules/special/entity/FixBonusEntity.java b/src/main/java/com/totopia/server/modules/special/entity/FixBonusEntity.java new file mode 100644 index 0000000..b414f56 --- /dev/null +++ b/src/main/java/com/totopia/server/modules/special/entity/FixBonusEntity.java @@ -0,0 +1,46 @@ +package com.totopia.server.modules.special.entity; + +import com.totopia.server.commons.data.entity.DateAuditEntity; +import lombok.*; +import lombok.experimental.SuperBuilder; + +import javax.persistence.*; + +@Entity +@Table(name = "fix_bonus") +@Data +@SuperBuilder +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@Builder +public class FixBonusEntity extends DateAuditEntity { + @Id + @GeneratedValue(generator = "fix_bonus_generator") + @SequenceGenerator(name = "fix_bonus_generator", sequenceName = "fix_bonus_sequence", initialValue = 1) + private Short id; + + @Basic + @Column(name = "game_type", nullable = false, length = 100) + private String gameType; + + @Basic + @Column(name = "game_description", nullable = false, length = 200) + private String gameDescription; + + @Basic + @Column(name = "user_description", nullable = false, length = 200) + private String userDescription; + + @Basic + @Column(name = "odds", nullable = false, length = 100) + private String odds; + + @Basic + @Column(name = "folder", nullable = false) + private Short folder; + + @Basic + @Column(name = "allow", nullable = true) + private Boolean allow = true; +} diff --git a/src/main/java/com/totopia/server/modules/special/repository/FixBonusRepository.java b/src/main/java/com/totopia/server/modules/special/repository/FixBonusRepository.java new file mode 100644 index 0000000..b835cf1 --- /dev/null +++ b/src/main/java/com/totopia/server/modules/special/repository/FixBonusRepository.java @@ -0,0 +1,7 @@ +package com.totopia.server.modules.special.repository; + +import com.totopia.server.modules.special.entity.FixBonusEntity; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface FixBonusRepository extends JpaRepository { +} diff --git a/src/main/java/com/totopia/server/modules/special/service/FixBonusService.java b/src/main/java/com/totopia/server/modules/special/service/FixBonusService.java new file mode 100644 index 0000000..17b6b14 --- /dev/null +++ b/src/main/java/com/totopia/server/modules/special/service/FixBonusService.java @@ -0,0 +1,32 @@ +package com.totopia.server.modules.special.service; + +import com.totopia.server.modules.special.entity.FixBonusEntity; +import com.totopia.server.modules.special.repository.FixBonusRepository; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class FixBonusService { + + @Autowired + private FixBonusRepository fixBonusRepository; + + + public void save(FixBonusEntity bonusEntity) { + + } + + public FixBonusEntity getFixBonusById(Short id) { + return null; + } + + public List getAll() { + return null; + } + + public Short removeById(Short id) { + return null; + } +}