White papers are a good place to start. Both structures support JDBC support by default. This support consists of two elements: the database schema and the pair of beans responsible for the preservation. What you need to do is provide your own implementations for these beans, and then configure both frameworks to use your beans. You need to implement the following interfaces:
, , beans . beans, (, ACL Spring ).