a java dao for developing restful api