|
|
@@ -4,14 +4,11 @@ import com.its.op.model.dto.database.IfscDto;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Getter;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
-import org.hibernate.annotations.ColumnDefault;
|
|
|
-import org.hibernate.annotations.DynamicInsert;
|
|
|
-import org.hibernate.annotations.DynamicUpdate;
|
|
|
+import org.hibernate.annotations.*;
|
|
|
|
|
|
-import javax.persistence.Column;
|
|
|
import javax.persistence.Entity;
|
|
|
-import javax.persistence.Id;
|
|
|
import javax.persistence.Table;
|
|
|
+import javax.persistence.*;
|
|
|
|
|
|
@DynamicInsert
|
|
|
@DynamicUpdate
|
|
|
@@ -53,6 +50,16 @@ public class Ifsc {
|
|
|
@ColumnDefault(value = "N")
|
|
|
private String DEL_YN; // N CHAR(1) Y 'N' 삭제 여부
|
|
|
|
|
|
+ @OneToOne
|
|
|
+ @JoinColumn(insertable=false, updatable=false, name="F_NODE", referencedColumnName = "NODE_ID")
|
|
|
+ @NotFound(action = NotFoundAction.IGNORE)
|
|
|
+ private Node fromNode = new Node();
|
|
|
+
|
|
|
+ @OneToOne
|
|
|
+ @JoinColumn(insertable=false, updatable=false, name="T_NODE", referencedColumnName = "NODE_ID")
|
|
|
+ @NotFound(action = NotFoundAction.IGNORE)
|
|
|
+ private Node toNode = new Node();
|
|
|
+
|
|
|
/*@OneToOne(mappedBy = "ifscInfo")
|
|
|
@Fetch(FetchMode.JOIN)
|
|
|
private IfscTraf ifscTraf = new IfscTraf();*/
|