create entity and dao