Skip to content

Commit

Permalink
Closes #6827
Browse files Browse the repository at this point in the history
Signed-off-by: Dr M H B Ariyaratne <buddhika.ari@gmail.com>
  • Loading branch information
buddhika75 committed Aug 10, 2024
1 parent bdc3b82 commit be5d220
Show file tree
Hide file tree
Showing 5 changed files with 169 additions and 130 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/divudi/bean/common/EnumController.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ public <E extends Enum<E>> E getEnumValue(Class<E> enumType, String enumName) {
return null; // Return null if no match is found
}

public Priority[] getPriorities() {
return Priority.values();

public List<Priority> getPriorities() {
return Arrays.asList(Priority.values());
}

public Dashboard[] getDashboardTypes() {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/divudi/entity/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
@DiscriminatorColumn(name = "DTYPE")
public class Item implements Serializable, Comparable<Item> {

@OneToMany(mappedBy = "item", fetch = FetchType.LAZY)
@OneToMany(mappedBy = "item", fetch = FetchType.EAGER)
List<InvestigationItem> reportItems;

@OneToMany(mappedBy = "item", fetch = FetchType.LAZY)
@OneToMany(mappedBy = "item", fetch = FetchType.EAGER)
List<WorksheetItem> worksheetItems;

@OneToMany(mappedBy = "item", fetch = FetchType.EAGER)
Expand Down
Loading

0 comments on commit be5d220

Please sign in to comment.