Modifying the alfresco database is not recommended. A content model would be a good way. If this requirement is mandatory than
You can use spring with hibernate to connect to the database. The properties required to connect the database are all declared inside alfresco-global.properties , which is located inside " tomcat / shared / classes / ".
For spring bean injection, you can declare beans inside any file that ends with "-context", which is inside the tomcat / shared / classes / alfresco / extension folder .
I still recommend the developer to use the content model.
source share