@Singleton public class WorkerDao extends AbstractDao
jpa
Modifier and Type | Method and Description |
---|---|
int |
count()
Returns the number of Worker rows
|
int |
countTotal()
Returns the total number of Worker (including the deleted ones)
|
void |
create(Worker worker) |
java.util.List<Worker> |
findAll() |
Worker |
findById(java.lang.Long id) |
void |
remove(Worker worker) |
void |
update(Worker worker) |
merge, persist, refresh, remove
public void create(Worker worker)
public void update(Worker worker)
public void remove(Worker worker)
public Worker findById(java.lang.Long id)
public java.util.List<Worker> findAll()
public int count()
public int countTotal()