Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1041

OrderBy on nested embeddables is not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M2
    • 2.0.0-M2
    • jdbc
    • None

    Description

      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)

      Attachments

        Activity

          People

            faywang Fay Wang
            faywang Fay Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: