× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Our java guys are using JPA to access databases on the AS/400. I want them
to be able to use packages (Extended dynamic support) on the AS/400.

My question is how do you specify package information in JPA?

AS/400 JDBC properties are like "extended dynamic" or "package" but they
don't seem to correspond to the JPA names. Can you just pass properties
through to the AS/400?

Here is there JPA specs.

<bean class=*
"org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"
* />

<bean id=*"commonEntityManagerFactory"* class=*
"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"*>

<property name=*"persistenceUnitName"* value=*"common-unit"*/>

<property name=*"persistenceXmlLocation"* value=*
"classpath:META-INF/common-persistence.xml"*/>

<property name=*"dataSource"* ref=*"commonDataSource"* />

<property name=*"jpaVendorAdapter"*>

<bean class=*
"org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"*>

<property name=*"database"* value=*"DB2"* />

<property name=*"showSql"* value=*"true"* />

</bean>

</property>

<property name=*"jpaPropertyMap"*>

<map>

<entry key=*"hibernate.hbm2ddl.auto"* value=*"none"* />

<entry key=*"hibernate.format_sql"* value=*"true"* />

</map>

</property>

</bean>



<bean id=*"transactionManager"* class=*
"org.springframework.orm.jpa.JpaTransactionManager"*>

<property name=*"entityManagerFactory"* ref=*
"commonEntityManagerFactory"* />

</bean>

<tx:annotation-driven transaction-manager=*"transactionManager"* />

<jee:jndi-lookup id=*"commonDataSource"* jndi-name=*"jdbc/CRECOMDB"*
resource-ref=*"true"*/>

<Context docBase=*"cre_dmwb_server"* path=*
"/cre_dmwb_server"* reloadable=*"true"* source=*
"org.eclipse.jst.j2ee.server:cre_dmwb_server"*>

<Resource auth=*"Container"* driverClassName=*
"com.ibm.as400.access.AS400JDBCDriver"* name=*"jdbc/CRECOMDB"* password=*
"password"* type=*"javax.sql.DataSource"* url=*"jdbc:as400://as400b/g2dev"*
username=*"username"*/>

</Context>

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.