Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Just to make this complete.</p> <p>Instead of using Hibernate, EclipseLink could be used as JPA-provider in a Eclipse RCP application. EclipseLink is the former TopLink from Oracle and has been choosen to be the reference implementation for JPA 2.</p> <p>The point for an RCP is, that EclipseLink is available as OSGI-Bundles (org.eclipse.persistence.jpa), and due to that it can load classes from another plugin without an additional buddy-policy.</p> <p>Currently I was playing around, using the following project structure (Model-View-Presenter Pattern). The names in the brackets specify the dependecy plugins (not all are included, only the ones related to this question)</p> <ul> <li><strong>rcp.mvp.view</strong> (rcp.mvp.presenter / rcp.mvp.model)</li> <li><strong>rcp.mvp.presenter</strong> (rcp.mvp.data - data reexports the model, so this is not needed here) *</li> <li><strong>rcp.mvp.data</strong> (rcp.mvp.data.mysql / rcp.mvp.model / javax.persistence / org.eclipse.persistence.jpa)</li> <li><strong>rcp.mvp.data.mysql</strong> - provides only the mysql-jdbc-driver. has to be inside the classpath</li> <li><strong>rcp.mvp.model</strong></li> </ul> <p><strong>In this scenario, the JPA provider in the data-plugin is able to load the classes from the model-plugin without a buddy-policy.</strong></p> <p>*Note, the presenter is not dependent on any JPA packages since this is encapsulated by DAOs (the main reason why to use them still)</p> <p>Links</p> <ul> <li><a href="http://wiki.eclipse.org/EclipseLink/UserGuide" rel="nofollow noreferrer">User Guide</a></li> <li><a href="http://wiki.eclipse.org/EclipseLink/Examples/JPA/RCP" rel="nofollow noreferrer">RCP example</a> (unfortunately not using DAOs)</li> <li><a href="http://live.eclipse.org/node/490" rel="nofollow noreferrer">EclipseLink conceptual Webinar</a> from live.eclipse.org</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload