Skip to content

Commit

Permalink
Add getPersons method to hoper.Hydra class
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed May 9, 2019
1 parent d4233f8 commit 70804a5
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ trait Person {
birthPlace : null,
rem : null,
groupId : null,
stateId : null
//firmId : getFirmId()
stateId : null,
firmId : null
]
}

Expand Down Expand Up @@ -68,6 +68,11 @@ trait Person {
return nvlParams(data)
}

List getPersons(LinkedHashMap input = [:]) {
def params = getPaginationDefaultParams() + input
return getEntities(getPersonEntityType(), params)
}

LinkedHashMap getPerson(def id) {
return getEntity(getPersonEntityType(), id)
}
Expand Down

0 comments on commit 70804a5

Please sign in to comment.