From: Aplaws D. L. <apl...@li...> - 2009-06-24 06:26:25
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7460837 By: jensp1108 Maybe there is an option which allows us to support the JPA and JCR. The JPA is designed for persisting Java Beans is an relational database. This task is called Object Relational Mapping (ORM). The JPA uses annotations or XML files to mark the properties which should be stored into the database. The Apache Jackrabbit provides something very similar for the JCR. They call it Object Content Mapping (OCM): http://jackrabbit.apache.org/object-content-mapping.html. OCM works very similar to the JPA. The objects to store must be Java Beans, and you mark the properties to store with annotations or in a XML file. So if we use XML files for the JPA instead of annotations we can switch very easily to JCR. The methods needed for reading and writing are very similar, so that it should be easy to design an interface containing these methods. This interface would be implemented by a class which maps the methods from the interface to the concrete methods of the JPA or the Jackrabbit OCM implementation. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=368401 |