Added version attribute for optimistic locking to Domain(s).