The entry class should be immutable.