complete resource, add dao hibernate