parent
6662c11813
commit
dc67c3b12b
@ -0,0 +1,32 @@
|
||||
package com.worker.domain.entity;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Entity
|
||||
@Table(name = "cp_main_etc1")
|
||||
@Getter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class CpMainEtc1 {
|
||||
|
||||
@Id
|
||||
@Column(name = "MM_CODE", length = 16)
|
||||
private String mmCode;
|
||||
|
||||
@Column(name = "MM_JSDATE", length = 8)
|
||||
private String mmJsdate;
|
||||
|
||||
@Column(name = "MM_KEY", length = 30)
|
||||
private String mmKey;
|
||||
|
||||
@Column(name = "MM_TEXT", length = 4000)
|
||||
private String mmText;
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
package com.worker.domain.repo.cp;
|
||||
|
||||
import com.worker.domain.entity.CpMainEtc1;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
public interface CpMainEtc1Repository extends JpaRepository<CpMainEtc1, Integer> {
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
package com.worker.domain.repo.ep;
|
||||
|
||||
import com.worker.domain.entity.CpMainEtc1;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
public interface EpMainEtc1Repository extends JpaRepository<CpMainEtc1, Integer> {
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
package com.worker.util.common;
|
||||
|
||||
public class CommonUtils {
|
||||
|
||||
public static String truncate(String input, int maxLength) {
|
||||
if (input == null) return null;
|
||||
return input.length() > maxLength ? input.substring(0, maxLength) : input;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue