Re: OpenJPA querying on element collections

2011-09-27 Thread Rick Curtis
Howard - Yes, it is possible. I'd recommend reading through the JPA 2.0 spec[1] for a more thorough answer. Try something like this: SELECT x FROM Item x WHERE KEY(m_properties)= 'x' 'h' Thanks, Rick [1] JPA 2.0 -- 4.4.4 Path Expressions -- snippet .. In the following query, photos is a map

Re: Multiple concurrent threads attempted to access a single broker

2011-09-27 Thread Pinaki Poddar
Tell me few things: 1. a functionDO carries multiple entities. Right? 2. Do all these entities belong to the same business/persistence unit? 3. If they belong to different persistent unit, is it permissible that entities of unit A get committed, but entities of unit B fail to commit? -

Re: Multiple concurrent threads attempted to access a single broker

2011-09-27 Thread chintan4181
Hi, Here is my response: 1. a functionDO carries multiple entities. Right? [Yes] 2. Do all these entities belong to the same business/persistence unit? [Yes] 3. If they belong to different persistent unit, is it permissible that entities of unit A get committed, but entities of unit B fail

Re: How to Enable Buildtime entity enhancement in RSA?

2011-09-27 Thread Kevin Sutter
Hi, I think you are referring to the metamodel generation (*_.java) instead of performing the byte code enhancing. The metamodel generation just requires an additional parameter on your javac invocation: $ javac -classpath path/to/openjpa-all.jar -Aopenjpa.metamodel=true mypackage/MyEntity.java

Re: How to Enable Buildtime entity enhancement in RSA?

2011-09-27 Thread chintan4181
Does meta model generation have impact on performance? -- View this message in context: http://openjpa.208410.n2.nabble.com/How-to-Enable-Buildtime-entity-enhancement-in-RSA-tp6836583p6837636.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: How to Enable Buildtime entity enhancement in RSA?

2011-09-27 Thread chintan4181
Hi I am getting below exception. org.apache.openjpa.util.MetaDataException: No metadata was found for type class com.company.vo.TestEnity. The class is not enhanced. I am running my application on WAS 7.0. How do i enhance TestEntity at runtime? what entry i should put as JVM arguments? --

Re: How to Enable Buildtime entity enhancement in RSA?

2011-09-27 Thread Pinaki Poddar
Does meta model generation have impact on performance? no - Pinaki Poddar Chair, Apache OpenJPA Project -- View this message in context: http://openjpa.208410.n2.nabble.com/How-to-Enable-Buildtime-entity-enhancement-in-RSA-tp6836583p6837991.html Sent from the OpenJPA Users mailing list

Re: How to Enable Buildtime entity enhancement in RSA?

2011-09-27 Thread chintan4181
Hi Pinaki, I have created java bean (custom object) and defined in persistent xml. I have created native query and mapped attibutes to java bean. I was able to get the object properly. I have canonical meta-model is on. If i use below code, it give me error saying, class is not enahnced. I