Skip to content

Commit

Permalink
added dataSet function for new layout changing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
SakalAndrej committed Mar 4, 2018
1 parent dae0584 commit 10eedf9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public DataSetDataField findById(long id) {
return entityManager.find(DataSetDataField.class, id);
}


public List<DataSetDataField> getAll() {
TypedQuery<DataSetDataField> q = entityManager.createNamedQuery("DataSetDataField.GetAll", DataSetDataField.class);
return q.getResultList();
Expand All @@ -54,4 +53,9 @@ public void deleteById(long id) {
DataSetDataField entityToDelete = findById(id);
entityManager.remove(entityToDelete);
}

public List<DataSetDataField> getActiveDataSetRows() {
TypedQuery<DataSetDataField> q = entityManager.createNamedQuery("DataSetDataField.findActive", DataSetDataField.class);
return q.getResultList();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
query = "select d from DataSetDataField d"),

@NamedQuery(name = "DataSetDataField.findByRowId",
query = "select d from DataSetDataField d where :id = d.dataRowId")
query = "select d from DataSetDataField d where :id = d.dataRowId"),

@NamedQuery(name = "DataSetDataField.findActive",
query = "select d from DataSetDataField d where d.isActive = true")
})

@Table
Expand Down

0 comments on commit 10eedf9

Please sign in to comment.