Add repository setter and constructor so can be used with Spring.