Generate entity repositories