Re: Query hint for isolation level does not work (OpenJPA 2.0.1 on DB2)

2011-09-26 Thread Rick Curtis
Tobias - I'm somewhat confused by your post? .. I assume you meant to put snippets of a runtime warning? DB2Dictionary defines a constant but it seems it is never used. Correct. How can I set the isolation level to read-uncommited to produce the DB2 SQL clause WITH UR? As it stands today,

Enhanced JPA Entity

2011-09-26 Thread chintan4181
hi, I am getting below exception org.apache.openjpa.util.MetaDataException: No metadata was found for type class com.company.domain.TestApplicatonVO. The class is not enhanced.; I can remove this exception by turning on Enity enahancement but I have below doubts 1) I am running on WAS 7 server

Re: Enhanced JPA Entity

2011-09-26 Thread Rick Curtis
1) I am running on WAS 7 server If you have the JPA Feature Pack installed, you won't need to specify a javaagent. Enhancement is handled by the container / JPA runtime. and if i turn on entity enhancer using javaagent, does that create any performance issue? You will pay a small cost for the

OpenJPA querying on element collections

2011-09-26 Thread Howard Mak
Hi, Does anyone know if OpenJPA supports queries on element collections? Given: @Entity @Table(name=items) public class Item implements Serializable { @Id @Column(name=seq_no)

How to handle Application managed entity manager

2011-09-26 Thread chintan4181
hi, We have requirement in which each business department have it's own persistence unit. At present we have 2 business unit ( and in future it may arise). Since we have to support dynamic persistent units defined based on business department, we have replaced @persistenceContext(unitname=x)

Re: How to handle Application managed entity manager

2011-09-26 Thread Jody Grassel
Hey there. While it is permitted, using Persistence.createEntityManagerFactory() in a JEE environment is a somewhat treacherous road to walk, as the application developer bears the full responsibility of the EMF's lifecycle, including closing the EMF when it is no longer needed. Applications