I'm learning about Domain Driven Design and struggling with the question if a particular object should be handled as entity or value object.All possible surname prefixes are kept in a database table. (The data is used in a combo box). Since there are records kept of all these prefixes, should Prefix be seen as an entity? Or is it still possible to handle it as a value object?
DDD - If an object is saved as a whole to the database, is it per definition an entity, or is it still possible that it is a value object?
domain driven design;entity;value object
You already gave the answer yourself in your comment to the other question:  If two Prefix objects with the same content are interchangeable, then Prefix is (probably) a value object.Another rule of thumb is: Domain first, infrastructure second, i.e., don't let infrastructure concerns (here: primary keys in database tables) influence your domain model.