-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
136 additions
and
3 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
118 changes: 118 additions & 0 deletions
118
backend/src/main/java/ca/bc/gov/app/m/postgres/client/entity/ClientStatusCodeEntity.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,118 @@ | ||
package ca.bc.gov.app.m.postgres.client.entity; | ||
|
||
import java.util.Date; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.Id; | ||
import javax.persistence.Table; | ||
|
||
import org.springframework.context.annotation.Scope; | ||
import org.springframework.stereotype.Component; | ||
|
||
import ca.bc.gov.app.core.configuration.PostgresPersistenceConfiguration; | ||
import ca.bc.gov.app.core.entity.AbstractEntity; | ||
import ca.bc.gov.app.core.misc.scope.ScopeConstant; | ||
|
||
@Entity | ||
@Table(name = "CLIENT_STATUS_CODE", schema = PostgresPersistenceConfiguration.POSTGRES_ATTRIBUTE_SCHEMA) | ||
@Component(ClientStatusCodeEntity.BEAN_NAME) | ||
@Scope(ScopeConstant.PROTOTYPE) | ||
public class ClientStatusCodeEntity implements AbstractEntity { | ||
|
||
private static final long serialVersionUID = 4341025008217142732L; | ||
|
||
public static final String BEAN_NAME = "clientStatusCodeEntity"; | ||
|
||
public static final String ACTIVE = "ACT"; | ||
|
||
@Id | ||
@Column(name = "CLIENT_STATUS_CODE") | ||
private String clientStatusCode; | ||
|
||
@Column(name = "DESCRIPTION") | ||
private String description; | ||
|
||
@Column(name = "EFFECTIVE_DATE") | ||
private Date effectiveDate; | ||
|
||
@Column(name = "EXPIRY_DATE") | ||
private Date expiryDate; | ||
|
||
@Column(name = "CREATE_TIMESTAMP") | ||
private Date createTimestamp; | ||
|
||
@Column(name = "UPDATE_TIMESTAMP") | ||
private Date updateTimestamp; | ||
|
||
@Column(name = "CREATE_USER") | ||
private String createUser; | ||
|
||
@Column(name = "UPDATE_USER") | ||
private String updateUser; | ||
|
||
public String getClientStatusCode() { | ||
return clientStatusCode; | ||
} | ||
|
||
public void setClientStatusCode(String clientStatusCode) { | ||
this.clientStatusCode = clientStatusCode; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
public Date getEffectiveDate() { | ||
return effectiveDate; | ||
} | ||
|
||
public void setEffectiveDate(Date effectiveDate) { | ||
this.effectiveDate = effectiveDate; | ||
} | ||
|
||
public Date getExpiryDate() { | ||
return expiryDate; | ||
} | ||
|
||
public void setExpiryDate(Date expiryDate) { | ||
this.expiryDate = expiryDate; | ||
} | ||
|
||
public Date getCreateTimestamp() { | ||
return createTimestamp; | ||
} | ||
|
||
public void setCreateTimestamp(Date createTimestamp) { | ||
this.createTimestamp = createTimestamp; | ||
} | ||
|
||
public Date getUpdateTimestamp() { | ||
return updateTimestamp; | ||
} | ||
|
||
public void setUpdateTimestamp(Date updateTimestamp) { | ||
this.updateTimestamp = updateTimestamp; | ||
} | ||
|
||
public String getCreateUser() { | ||
return createUser; | ||
} | ||
|
||
public void setCreateUser(String createUser) { | ||
this.createUser = createUser; | ||
} | ||
|
||
public String getUpdateUser() { | ||
return updateUser; | ||
} | ||
|
||
public void setUpdateUser(String updateUser) { | ||
this.updateUser = updateUser; | ||
} | ||
|
||
} |
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