-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
4eca260
commit d82e9da
Showing
15 changed files
with
117 additions
and
221 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [published, edited] | ||
push: | ||
|
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.
33 changes: 0 additions & 33 deletions
33
src/main/java/uk/co/bconline/ndelius/model/entity/LDUEntity.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() ? "" : " [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
Oops, something went wrong.