Currently, I am facing a situation where an object is not created yet and therefore lacks an ID. The user is in the process of entering data to create this object, including adding attributes that require the object's ID.
The problem arises because the object has not been fully created yet. When editing an existing object with an assigned ID, adding attributes is straightforward.
Consider this relational model:
OBJECT (name, id)
^ ATTRIBUTE (name, object_id, id)
How would you handle such scenarios effectively? One approach could be introducing an "is_temporary" field for the object to receive an immediate ID, but there may be other better solutions available.