openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fay Wang (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-1041) OrderBy on nested embeddables is not working
Date Wed, 15 Apr 2009 23:23:15 GMT
OrderBy on nested embeddables is not working
--------------------------------------------

                 Key: OPENJPA-1041
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1041
             Project: OpenJPA
          Issue Type: Bug
          Components: jdbc
    Affects Versions: 2.0.0
            Reporter: Fay Wang
            Assignee: Fay Wang
             Fix For: 2.0.0


Exception in thread "main" <openjpa-0.0.0-rnull fatal user error> org.apache.openjpa.util.MetaDataException:
Cannot order "spec_10_1_35_Ex3.Person_10_1_35_3.residences" on "zipcode.zip", because that
is not a persistent field in the related type.
	at org.apache.openjpa.meta.MetaDataRepository.newOrder(MetaDataRepository.java:880)
	at org.apache.openjpa.meta.FieldMetaData.getOrders(FieldMetaData.java:1153)
	at org.apache.openjpa.jdbc.meta.strats.StoreCollectionFieldStrategy.selectEager(StoreCollectionFieldStrategy.java:215)
	at org.apache.openjpa.jdbc.meta.strats.StoreCollectionFieldStrategy.selectEagerJoin(StoreCollectionFieldStrategy.java:180)
	at org.apache.openjpa.jdbc.meta.FieldMapping.selectEagerJoin(FieldMapping.java:829)
	at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.select(JDBCStoreManager.java:1074)
	at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.load(JDBCStoreManager.java:621)
	at org.apache.openjpa.kernel.DelegatingStoreManager.load(DelegatingStoreManager.java:116)
	at org.apache.openjpa.kernel.ROPStoreManager.load(ROPStoreManager.java:78)
	at org.apache.openjpa.kernel.StateManagerImpl.loadFields(StateManagerImpl.java:2975)
	at org.apache.openjpa.kernel.StateManagerImpl.loadField(StateManagerImpl.java:3053)
	at org.apache.openjpa.kernel.StateManagerImpl.fetchObjectField(StateManagerImpl.java:2295)
	at org.apache.openjpa.kernel.StateManagerImpl.fetchField(StateManagerImpl.java:817)
	at org.apache.openjpa.kernel.StateManagerImpl.fetch(StateManagerImpl.java:779)
	at org.apache.openjpa.enhance.RedefinitionHelper$1.invoke(RedefinitionHelper.java:230)
	at $Proxy11.size(Unknown Source)
	at spec_10_1_35_Ex3.Test_10_1_35_Ex3.findObj(Test_10_1_35_Ex3.java:131)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message