check in dao class for model