Spring的版本號為2.0.6
openJPA的版本為0.9.7(其實1.0.0也是一樣)
照下面如此,客戶端不用裝應用服務器開發(fā)了.
但如果你的客戶端是Eclipse的RCP則和這個配置有一些不同
1.項目的Classpath的列表
<classpathentry kind="lib" path="main/lib/commons-beanutils.jar"/>
<classpathentry kind="lib" path="main/lib/commons-beanutils-bean-collections.jar"/>
<classpathentry kind="lib" path="main/lib/commons-beanutils-core.jar"/>
<classpathentry kind="lib" path="main/lib/commons-collections-3.2.jar"/>
<classpathentry kind="lib" path="main/lib/commons-lang.jar"/>
<classpathentry kind="lib" path="main/lib/commons-logging.jar"/>
<classpathentry kind="lib" path="main/lib/javaee.jar"/>
<classpathentry kind="lib" path="main/lib/log4j-1.2.14.jar"/>
<classpathentry kind="lib" path="main/lib/openjpa-0.9.7-incubating.jar"/>
<classpathentry kind="lib" path="main/lib/serp-1.11.0.jar"/>
<classpathentry kind="lib" path="test/lib/aspectjrt.jar"/>
<classpathentry kind="lib" path="test/lib/aspectjweaver.jar"/>
<classpathentry kind="lib" path="test/lib/cglib-nodep-2.1_3.jar"/>
<classpathentry kind="lib" path="test/lib/dbunit-2.2.jar"/>
<classpathentry kind="lib" path="test/lib/ojdbc14.jar"/>
<classpathentry kind="lib" path="test/lib/postgresql-8.2-506.jdbc3.jar"/>
<classpathentry kind="lib" path="test/lib/spring.jar"/>

2.BEANS.XML的配置










































































3.persistence_1_0.xsd和orm_1_0.xsd
將這兩個文件放到項目的classpath的根位置
4.做測試程序






