Use the MasterSlaveEntity repository properly.