openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From garpinc <garp...@yahoo.com>
Subject @javax.persistence.ElementCollection instead of @org.apache.openjpa.persistence.PersistentCollection I get exception
Date Tue, 28 Aug 2012 20:28:36 GMT
I have a scenario where i'm trying to use standard JPA annotations vs OpenJPA
annotations. In my mapping if I use @javax.persistence.ElementCollection
instead of @org.apache.openjpa.persistence.PersistentCollection  I get
following exception. 

I have config parameter         jpaConf.put("openjpa.jdbc.MappingDefaults",
"org.openanzo.rdf.URI=com.cambridgesemantics.anzo.relationalreplicator.openjpa.plugin.URIValueHandler'");

but it doesn't seem to take effect for the standard
@javax.persistence.ElementCollection

Is this a bug?


org.apache.openjpa.util.MetaDataException: No metadata was found for type
"interface org.openanzo.rdf.URI". The class is not enhanced.
	at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:403)
	at
org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:384)
	at
org.apache.openjpa.meta.ClassMetaData.resolveMeta(ClassMetaData.java:1832)
	at org.apache.openjpa.meta.ClassMetaData.resolve(ClassMetaData.java:1797)
	at
org.apache.openjpa.meta.ValueMetaDataImpl.resolve(ValueMetaDataImpl.java:435)
	at org.apache.openjpa.meta.FieldMetaData.resolve(FieldMetaData.java:1880)
	at
org.apache.openjpa.meta.ClassMetaData.resolveMeta(ClassMetaData.java:1863)
	at org.apache.openjpa.meta.ClassMetaData.resolve(ClassMetaData.java:1797)
	at
org.apache.openjpa.meta.MetaDataRepository.processBuffer(MetaDataRepository.java:822)
	at
org.apache.openjpa.meta.MetaDataRepository.resolveMeta(MetaDataRepository.java:719)
	at
org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:643)




--
View this message in context: http://openjpa.208410.n2.nabble.com/javax-persistence-ElementCollection-instead-of-org-apache-openjpa-persistence-PersistentCollection-In-tp7580963.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message