-
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.
DST-15503 : Improvements for Export Users spreadsheet
- Loading branch information
1 parent
b6154c6
commit 6696c0b
Showing
12 changed files
with
321 additions
and
30 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
40 changes: 40 additions & 0 deletions
40
src/main/java/uk/co/bconline/ndelius/model/entity/BoroughEntity.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,40 @@ | ||
package uk.co.bconline.ndelius.model.entity; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import uk.co.bconline.ndelius.model.entity.export.ProbationAreaExportEntity; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.Id; | ||
import javax.persistence.JoinColumn; | ||
import javax.persistence.ManyToOne; | ||
import javax.persistence.SequenceGenerator; | ||
import javax.persistence.Table; | ||
import java.io.Serializable; | ||
|
||
@Getter | ||
@Entity | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Table(name = "BOROUGH") | ||
public class BoroughEntity implements Serializable | ||
{ | ||
@Id | ||
@Column(name = "BOROUGH_ID") | ||
@GeneratedValue(generator = "BOROUGH_ID_SEQ") | ||
@SequenceGenerator(name = "BOROUGH_ID_SEQ", sequenceName = "BOROUGH_ID_SEQ", allocationSize = 1) | ||
private Long id; | ||
|
||
@Column(name = "CODE") | ||
private String code; | ||
|
||
@Column(name = "DESCRIPTION") | ||
private String description; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "PROBATION_AREA_ID") | ||
private ProbationAreaExportEntity probationArea; | ||
} |
33 changes: 33 additions & 0 deletions
33
src/main/java/uk/co/bconline/ndelius/model/entity/LDUEntity.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,33 @@ | ||
package uk.co.bconline.ndelius.model.entity; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.Id; | ||
import javax.persistence.SequenceGenerator; | ||
import javax.persistence.Table; | ||
import java.io.Serializable; | ||
|
||
@Getter | ||
@Entity | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Table(name = "LOCAL_DELIVERY_UNIT") | ||
public class LDUEntity implements Serializable | ||
{ | ||
@Id | ||
@Column(name = "LOCAL_DELIVERY_UNIT_ID") | ||
@GeneratedValue(generator = "LOCAL_DELIVERY_UNIT_ID_SEQ") | ||
@SequenceGenerator(name = "LOCAL_DELIVERY_UNIT_ID_SEQ", sequenceName = "LOCAL_DELIVERY_UNIT_ID_SEQ", allocationSize = 1) | ||
private Long id; | ||
|
||
@Column(name = "CODE") | ||
private String code; | ||
|
||
@Column(name = "DESCRIPTION") | ||
private String description; | ||
} |
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
45 changes: 45 additions & 0 deletions
45
src/main/java/uk/co/bconline/ndelius/model/entity/export/BoroughExportEntity.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,45 @@ | ||
package uk.co.bconline.ndelius.model.entity.export; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import org.hibernate.annotations.Type; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.Id; | ||
import javax.persistence.JoinColumn; | ||
import javax.persistence.ManyToOne; | ||
import javax.persistence.SequenceGenerator; | ||
import javax.persistence.Table; | ||
import java.io.Serializable; | ||
import java.time.LocalDate; | ||
|
||
@Getter | ||
@Entity | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Table(name = "BOROUGH") | ||
public class BoroughExportEntity implements Serializable | ||
{ | ||
@Id | ||
@Column(name = "BOROUGH_ID") | ||
@GeneratedValue(generator = "BOROUGH_ID_SEQ") | ||
@SequenceGenerator(name = "BOROUGH_ID_SEQ", sequenceName = "BOROUGH_ID_SEQ", allocationSize = 1) | ||
private Long id; | ||
|
||
@Column(name = "CODE") | ||
private String code; | ||
|
||
@Column(name = "DESCRIPTION") | ||
private String description; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "PROBATION_AREA_ID") | ||
private ProbationAreaExportEntity probationArea; | ||
|
||
@Column(name = "END_DATE") | ||
@Type(type = "java.time.LocalDate") | ||
private LocalDate endDate; | ||
} |
39 changes: 39 additions & 0 deletions
39
src/main/java/uk/co/bconline/ndelius/model/entity/export/LDUExportEntity.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,39 @@ | ||
package uk.co.bconline.ndelius.model.entity.export; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import org.hibernate.annotations.Type; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.Id; | ||
import javax.persistence.SequenceGenerator; | ||
import javax.persistence.Table; | ||
import java.io.Serializable; | ||
import java.time.LocalDate; | ||
|
||
@Getter | ||
@Entity | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Table(name = "LOCAL_DELIVERY_UNIT") | ||
public class LDUExportEntity implements Serializable | ||
{ | ||
@Id | ||
@Column(name = "LOCAL_DELIVERY_UNIT_ID") | ||
@GeneratedValue(generator = "LOCAL_DELIVERY_UNIT_ID_SEQ") | ||
@SequenceGenerator(name = "LOCAL_DELIVERY_UNIT_ID_SEQ", sequenceName = "LOCAL_DELIVERY_UNIT_ID_SEQ", allocationSize = 1) | ||
private Long id; | ||
|
||
@Column(name = "CODE") | ||
private String code; | ||
|
||
@Column(name = "DESCRIPTION") | ||
private String description; | ||
|
||
@Column(name = "END_DATE") | ||
@Type(type = "java.time.LocalDate") | ||
private LocalDate endDate; | ||
} |
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
Oops, something went wrong.