fix: relation 재정의

- MinSimsa680, MinSimsaUser680 relation 재정의
- 프로젝트 정보 변경
dev
Lim Jonguk 3 years ago
parent 583d4025c1
commit 33827fad16

@ -37,7 +37,7 @@ plugins {
// buildscript // buildscript
group = 'com.xit' group = 'com.xit'
version = '0.0.1-SNAPSHOT' version = '0.0.1-SNAPSHOT'
description = 'xit-framework' description = 'xit-opst-bo'
sourceCompatibility = '11' sourceCompatibility = '11'
// WAS : bootWar.enabled = false // WAS : bootWar.enabled = false
@ -190,6 +190,8 @@ dependencies {
// simple captcha // simple captcha
implementation fileTree(dir: 'repo', include: ['*.jar']) implementation fileTree(dir: 'repo', include: ['*.jar'])
//implementation fileTree(dir: 'repo', include: 'simplecaptcha-1.2.1.jar')
//implementation fileTree(dir: 'repo', include: 'ojdbc8.jar')
// amazon aws s3 // amazon aws s3
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.131' implementation 'com.amazonaws:aws-java-sdk-s3:1.12.131'

2
gradlew vendored

@ -61,7 +61,7 @@
# You can find Gradle at https://github.com/gradle/gradle/. # You can find Gradle at https://github.com/gradle/gradle/.
# #
############################################################################## ##############################################################################
export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
# Attempt to set APP_HOME # Attempt to set APP_HOME
# Resolve links: $0 may be a link # Resolve links: $0 may be a link

2
gradlew.bat vendored

@ -21,7 +21,7 @@
@rem @rem
@rem ########################################################################## @rem ##########################################################################
set JAVA_HOME=C:\tools\java\azul-11.0.13 set JAVA_HOME=/usr/bin/java
@rem Set local scope for the variables with windows NT shell @rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal if "%OS%"=="Windows_NT" setlocal

@ -2,4 +2,4 @@
* This file was generated by the Gradle 'init' task. * This file was generated by the Gradle 'init' task.
*/ */
rootProject.name = 'xit-framework' rootProject.name = 'xit-opst-bo'

@ -1,5 +1,6 @@
package com.xit.biz.ctgy.entity; package com.xit.biz.ctgy.entity;
import com.xit.biz.cmm.entity.CmmUser;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -7,6 +8,8 @@ import lombok.Generated;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.*; import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
@Schema(name = "MinSimsa680", description = "민원심사") @Schema(name = "MinSimsa680", description = "민원심사")
@NoArgsConstructor @NoArgsConstructor
@ -25,6 +28,18 @@ public class MinSimsa680 {
/*private Long msMaincode;*/ /*private Long msMaincode;*/
private Tf680Recall tf680Recall; private Tf680Recall tf680Recall;
@OneToMany(targetEntity = MinSimsaUser680.class, cascade = CascadeType.ALL, orphanRemoval = true)
@JoinColumn(name = "MSU_MAINCODE")
private final Set<MinSimsaUser680> minSimsaUser680ss = new HashSet<>();
@Schema(required = true, title = "접수번호", example = " ", description = "Input Description...") @Schema(required = true, title = "접수번호", example = " ", description = "Input Description...")
@Column(name = "MS_SEQ", nullable = false) @Column(name = "MS_SEQ", nullable = false)
private String msSeq; private String msSeq;

@ -21,12 +21,19 @@ public class MinSimsaUser680 {
@Column(name = "MSU_CODE", nullable = false) @Column(name = "MSU_CODE", nullable = false)
private Long msuCode; private Long msuCode;
@Schema(required = true, title = "민원코드", example = " ", description = "Input Description...")
// @Column(name = "MSU_MAINCODE", nullable = false)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "MS_MAINCODE") // @Schema(required = true, title = "민원코드", example = " ", description = "Input Description...")
// private Long msuMaincode; // //@Column(name = "MSU_MAINCODE", nullable = false)
private MinSimsa680 minSimsa680; // @ManyToOne(fetch = FetchType.LAZY)
// @JoinColumn(table = "MIN_SIMSA680", name = "MSU_MAINCODE", referencedColumnName = "")
//// private Long msuMaincode;
// private MinSimsa680 minSimsa680;
@Schema(required = true, title = "민원심사사용자코드", example = " ", description = "Input Description...") @Schema(required = true, title = "민원심사사용자코드", example = " ", description = "Input Description...")
// @Column(name = "MSU_USERID", nullable = false) // @Column(name = "MSU_USERID", nullable = false)

@ -17,14 +17,14 @@ spring:
# database setting # database setting
# ================================================================================================================== # ==================================================================================================================
datasource: datasource:
# driver-class-name: org.h2.Driver driver-class-name: org.h2.Driver
# url: jdbc:h2:mem:xitdb;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE url: jdbc:h2:mem:xitdb;MODE=Oracle;DATABASE_TO_LOWER=TRUE;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
# username: sa username: sa
# password: '' password: ''
driver-class-name: oracle.jdbc.driver.OracleDriver # driver-class-name: oracle.jdbc.OracleDriver
url: jdbc:oracle:thin:@211.119.124.118:1521:bustms # url: jdbc:oracle:thin:@211.119.124.118:1521:bustms
username: traffic # username: traffic
password: xhdgkq0 # password: xhdgkq0
hikari: hikari:
driver-class-name: ${spring.datasource.driver-class-name} driver-class-name: ${spring.datasource.driver-class-name}
jdbc-url: ${spring.datasource.url} jdbc-url: ${spring.datasource.url}
@ -36,14 +36,14 @@ spring:
# JPA setting # JPA setting
# ================================================================================================================== # ==================================================================================================================
jpa: jpa:
# database-platform: org.hibernate.dialect.H2Dialect database-platform: org.hibernate.dialect.H2Dialect
database-platform: org.hibernate.dialect.Oracle10gDialect # database-platform: org.hibernate.dialect.Oracle10gDialect
#show-sql: false #show-sql: false
properties: properties:
hibernate: hibernate:
hbm2ddl: hbm2ddl:
# create / create-drop / update / validate / none # create / create-drop / update / validate / none
auto: none auto: create-drop
h2: h2:
console: console:

@ -4,11 +4,11 @@
<springProfile name="local"> <springProfile name="local">
<property name="LOG_PATH" value="/data/xit/logs"/> <property name="LOG_PATH" value="/Users/minuk/data/xit/logs"/>
</springProfile> </springProfile>
<springProfile name="dev,prod"> <springProfile name="dev,prod">
<!-- <property name="LOG_PATH" value="/data/xit/logs"/>--> <!-- <property name="LOG_PATH" value="/data/xit/logs"/>-->
<proßperty name="LOG_PATH" value="/data/xit/logs"/> <proßperty name="LOG_PATH" value="/Users/minuk/data/xit/logs"/>
</springProfile> </springProfile>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/> <include resource="org/springframework/boot/logging/logback/defaults.xml"/>

Loading…
Cancel
Save