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
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?
-
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
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
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.
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?
--
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
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