create dao by criteria