fix: relation 재정의

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

@ -37,7 +37,7 @@ plugins {
// buildscript
group = 'com.xit'
version = '0.0.1-SNAPSHOT'
description = 'xit-framework'
description = 'xit-opst-bo'
sourceCompatibility = '11'
// WAS : bootWar.enabled = false
@ -190,6 +190,8 @@ dependencies {
// simple captcha
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
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/.
#
##############################################################################
export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
# Attempt to set APP_HOME
# Resolve links: $0 may be a link

2
gradlew.bat vendored

@ -21,7 +21,7 @@
@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
if "%OS%"=="Windows_NT" setlocal

@ -2,4 +2,4 @@
* 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;
import com.xit.biz.cmm.entity.CmmUser;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -7,6 +8,8 @@ import lombok.Generated;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
@Schema(name = "MinSimsa680", description = "민원심사")
@NoArgsConstructor
@ -25,6 +28,18 @@ public class MinSimsa680 {
/*private Long msMaincode;*/
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...")
@Column(name = "MS_SEQ", nullable = false)
private String msSeq;

@ -21,12 +21,19 @@ public class MinSimsaUser680 {
@Column(name = "MSU_CODE", nullable = false)
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")
// private Long msuMaincode;
private MinSimsa680 minSimsa680;
// @Schema(required = true, title = "민원코드", example = " ", description = "Input Description...")
// //@Column(name = "MSU_MAINCODE", nullable = false)
// @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...")
// @Column(name = "MSU_USERID", nullable = false)

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

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

Loading…
Cancel
Save