eeking Guidance on Creating a New Table in DSpace via Repository and Database Layer

30 views
Skip to first unread message

Reshwanth Rachuti

unread,
Mar 19, 2025, 7:55:45 AM3/19/25
to DSpace Technical Support

I am currently working on extending DSpace and need guidance on creating a new table while following DSpace’s best practices. Specifically, I am looking for the correct approach to:

  1. Defining a new model that represents the new database table.
  2. Creating a corresponding DAO that follows DSpace’s repository pattern.
  3. Integrating the new DAO with a service layer for data management.
  4. Ensuring that the new table is correctly created in the database, following the standard migration approach.

I would appreciate it if you could provide insights on:

  • The preferred method for defining and registering a new DAO and model within the DSpace framework.
  • How to properly configure the Spring-based repository layer to interact with the database.
  • The correct way to update the database schema, ensuring that the new table is recognized during the migration process.

If there are any existing examples, documentation references, or best practices for this process, I would be grateful if you could share them.

Thank you in advance for your time and support.

DSpace Technical Support

unread,
Mar 31, 2025, 5:47:55 PM3/31/25
to DSpace Technical Support
Hi,

This is a very advanced task in DSpace.  We don't currently have a guide for creating the table, and all the Hibernate & Spring code necessary to manage it.  My best recommendation is to look at the existing tables in DSpace to see how they are defined, including their DAOs, service layer, etc.  The existing tables will give you good examples of how this can be done.

Tim

Reply all
Reply to author
Forward
0 new messages