Moved predicateEntity relation to be a inner class