entity and dao building