-
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 Fixes for user export changes
- Loading branch information
1 parent
4eca260
commit efa5e56
Showing
9 changed files
with
88 additions
and
169 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: 0 additions & 40 deletions
40
src/main/java/uk/co/bconline/ndelius/model/entity/BoroughEntity.java
This file was deleted.
Oops, something went wrong.
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
41 changes: 41 additions & 0 deletions
41
src/main/java/uk/co/bconline/ndelius/model/entity/export/DistrictExportEntity.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,41 @@ | ||
package uk.co.bconline.ndelius.model.entity.export; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import uk.co.bconline.ndelius.model.entity.converter.YNConverter; | ||
|
||
import javax.persistence.*; | ||
import java.io.Serializable; | ||
|
||
@Getter | ||
@Entity | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Table(name = "DISTRICT") | ||
public class DistrictExportEntity implements Serializable | ||
{ | ||
@Id | ||
@Column(name = "DISTRICT_ID") | ||
@GeneratedValue(generator = "DISTRICT_ID_SEQ") | ||
@SequenceGenerator(name = "DISTRICT_ID_SEQ", sequenceName = "DISTRICT_ID_SEQ", allocationSize = 1) | ||
private Long id; | ||
|
||
@Column(name = "CODE") | ||
private String code; | ||
|
||
@Column(name = "DESCRIPTION") | ||
private String description; | ||
|
||
@Column(name = "SELECTABLE") | ||
@Convert(converter = YNConverter.class) | ||
private boolean selectable; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "BOROUGH_ID") | ||
private BoroughExportEntity borough; | ||
|
||
public String getExportDescription() { | ||
return description + " (" + code + ") " + (isSelectable() ? " [Active]" : " [Inactive]"); | ||
} | ||
} |
39 changes: 0 additions & 39 deletions
39
src/main/java/uk/co/bconline/ndelius/model/entity/export/LDUExportEntity.java
This file was deleted.
Oops, something went wrong.
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
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