- set id by the content's hashcode (otherwise we'll have multiple identical objects).