Skip to content

Instantly share code, notes, and snippets.

Last active July 12, 2018 14:19
What would you like to do?
import com.codahale.metrics.annotation.Timed;
import io.dropwizard.hibernate.UnitOfWork;
import java.util.List;
* Created by harshvardhan on 12/07/18.
public class MyResource {
private InfoDao infoDao;
public MyResource(InfoDao infoDao) {
this.infoDao = infoDao;
public String getName() {
return "Harsh";
public String postName(String name) {
System.out.println("Name given by : "+name);
return "Ok";
public List<Info> findAllEmp() {
System.out.println("All Emp : "+infoDao.findAll());
return infoDao.findAll();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment