Fixed hibernate index errors in domain classes.