-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
202 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
incubator/src/main/java/com/staging/incubator/models/Combinator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.staging.incubator.models; | ||
|
||
import java.io.Serializable; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Embeddable; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
|
||
@EqualsAndHashCode | ||
@Embeddable | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Data | ||
public class Combinator implements Serializable { | ||
|
||
@Column(name = "parent_one_id") | ||
private int parentOneId; | ||
// | ||
@Column(name = "parent_two_id") | ||
private int parentTwoId; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
incubator/src/main/java/com/staging/incubator/models/ElemixerParent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.staging.incubator.models; | ||
|
||
import java.util.List; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.Id; | ||
import javax.persistence.JoinColumn; | ||
import javax.persistence.OneToMany; | ||
import javax.persistence.OneToOne; | ||
import javax.persistence.Table; | ||
|
||
import com.fasterxml.jackson.annotation.JsonManagedReference; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Entity | ||
@Table(name="parent_table") | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class ElemixerParent { | ||
|
||
@Id | ||
@Column(name="combination_id") | ||
private int combinationId; | ||
|
||
// @OneToMany(mappedBy="parentOne") | ||
// @JoinColumn(name="element_id") | ||
// @JsonManagedReference(value="parentOne") | ||
// private Element parentOne; | ||
// | ||
// @OneToOne(mappedBy="parentTwo") | ||
// @JoinColumn(name="element_id") | ||
// @JsonManagedReference(value="parentTwo") | ||
// private Element parentTwo; | ||
// | ||
// @OneToOne(mappedBy="elementId") | ||
// private Element child; | ||
|
||
/*@OneToOne(mappedBy="") | ||
@JoinColumn(name="") | ||
private List<Element> family;*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ spring: | |
show-sql: false | ||
properties: | ||
hibernate: | ||
ddl-auto: update | ||
jdbc: | ||
lob: | ||
non_contextual_creation: true |