Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If an Entity (of same type name) doesn't exist, the new Entity type will be created along with its relationships defined in relationship-types.xml

Once imported into the Database, the overall structure is as follows:

  • All valid Entity Types are stored in the "entity_type" database table.
  • All Relationship type definitions are stored in the "relationship_type" database table
  • All Relationships between entities get stored in the "relationship" table.
  • Entities themselves are stored alongside Items in the 'item' table.  Every Entity must have a "dspace.entity.type" metadata field whose value is a valid Entity Type (from the "entity_type" table).

Keep in mind, your currently enabled Entity model is defined in your database, and NOT in the "relationship-types.xml".  Anytime you want to update your data model, you'd update/create a configuration (like relationship-types.xml) and re-run the "initialize-entities" command.

3. Configuration of community/collection list for Entity types

...