-
Notifications
You must be signed in to change notification settings - Fork 1
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
Newatia
authored and
Newatia
committed
May 1, 2024
1 parent
dd44d03
commit 2c688c0
Showing
2 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
...t-autoconfigure/src/main/java/gov/hhs/gsrs/impurities/models/ImpuritiesSolutionTable.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,70 @@ | ||
package gov.hhs.gsrs.impurities.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import gsrs.GsrsEntityProcessorListener; | ||
import gsrs.model.AbstractGsrsEntity; | ||
import gsrs.model.AbstractGsrsManualDirtyEntity; | ||
import ix.core.models.Indexable; | ||
import ix.core.models.IxModel; | ||
import ix.core.SingleParent; | ||
import ix.core.models.ParentReference; | ||
import ix.core.search.text.TextIndexerEntityListener; | ||
import ix.ginas.models.serialization.GsrsDateDeserializer; | ||
import ix.ginas.models.serialization.GsrsDateSerializer; | ||
|
||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.ToString; | ||
|
||
import org.hibernate.annotations.LazyCollection; | ||
import org.hibernate.annotations.LazyCollectionOption; | ||
import org.springframework.data.annotation.CreatedDate; | ||
import org.springframework.data.annotation.LastModifiedDate; | ||
import org.springframework.data.jpa.domain.support.AuditingEntityListener; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
|
||
import javax.persistence.*; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
import java.util.ArrayList; | ||
|
||
@SingleParent | ||
@Data | ||
@Entity | ||
@Table(name="SRSCID_IMPURITIES_SOLUTION_TABLE") | ||
public class ImpuritiesSolutionTable extends ImpuritiesCommonData { | ||
|
||
@Id | ||
@SequenceGenerator(name = "impSolTableSeq", sequenceName = "SRSCID_SQ_IMPURITIES_SOL_TABLE_ID", allocationSize = 1) | ||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "impSolTableSeq") | ||
@Column(name = "ID") | ||
public Long id; | ||
|
||
@Column(name = "SOLUTION_TIME", length=500) | ||
public String solutionTime; | ||
|
||
@Column(name = "SOLUTION_A_PERCENT", length=100) | ||
public String solutionAPercent; | ||
|
||
@Column(name = "SOLUTION_B_PERCENT", length=100) | ||
public String solutionBPercent; | ||
|
||
// Set PARENT Class, ImpuritiesTesting | ||
@Indexable(indexed=false) | ||
@ParentReference | ||
@EqualsAndHashCode.Exclude | ||
@JsonIgnore | ||
@ManyToOne(cascade = CascadeType.PERSIST) | ||
@JoinColumn(name="IMPURITIES_TEST_ID") | ||
public ImpuritiesTesting owner; | ||
|
||
// Set PARENT Class, ImpuritiesTesting | ||
public void setOwner(ImpuritiesTesting impuritiesTesting) { | ||
this.owner = impuritiesTesting; | ||
} | ||
|
||
} |
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