You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Tim McConnell (JIRA)" <ji...@apache.org> on 2009/02/06 03:02:06 UTC

[jira] Created: (OPENJPA-905) org.apache.openjpa.persistence.kernel.TestProxies2

org.apache.openjpa.persistence.kernel.TestProxies2
--------------------------------------------------

                 Key: OPENJPA-905
                 URL: https://issues.apache.org/jira/browse/OPENJPA-905
             Project: OpenJPA
          Issue Type: Sub-task
            Reporter: Tim McConnell
            Assignee: Tim McConnell




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


[jira] Updated: (OPENJPA-905) org.apache.openjpa.persistence.kernel.TestProxies2

Posted by "Tim McConnell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim McConnell updated OPENJPA-905:
----------------------------------

    Attachment: OPENJPA-905.patch

Attached patch to validate content of list without assuming certain order upon database retrieval. Tested on Derby, DB2, PostgreSQL.

> org.apache.openjpa.persistence.kernel.TestProxies2
> --------------------------------------------------
>
>                 Key: OPENJPA-905
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-905
>             Project: OpenJPA
>          Issue Type: Sub-task
>            Reporter: Tim McConnell
>            Assignee: Tim McConnell
>         Attachments: OPENJPA-905.patch
>
>


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


[jira] Updated: (OPENJPA-905) org.apache.openjpa.persistence.kernel.TestProxies2

Posted by "Tim McConnell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim McConnell updated OPENJPA-905:
----------------------------------

    Attachment:     (was: OPENJPA-905.patch)

> org.apache.openjpa.persistence.kernel.TestProxies2
> --------------------------------------------------
>
>                 Key: OPENJPA-905
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-905
>             Project: OpenJPA
>          Issue Type: Sub-task
>            Reporter: Tim McConnell
>            Assignee: Tim McConnell
>         Attachments: OPENJPA-905_2.patch
>
>


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


[jira] Updated: (OPENJPA-905) org.apache.openjpa.persistence.kernel.TestProxies2

Posted by "Tim McConnell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim McConnell updated OPENJPA-905:
----------------------------------

    Attachment: OPENJPA-905_2.patch

Hi Albert, thanks for reviewing. I agree and have attached a new patch, which I've tested on Derby, DB2, and PostgreSQL. It was only failing on PostgreSQL before but wanted to ensure it didn't break anything.....

> org.apache.openjpa.persistence.kernel.TestProxies2
> --------------------------------------------------
>
>                 Key: OPENJPA-905
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-905
>             Project: OpenJPA
>          Issue Type: Sub-task
>            Reporter: Tim McConnell
>            Assignee: Tim McConnell
>         Attachments: OPENJPA-905_2.patch
>
>


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


[jira] Commented: (OPENJPA-905) org.apache.openjpa.persistence.kernel.TestProxies2

Posted by "Tim McConnell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670980#action_12670980 ] 

Tim McConnell commented on OPENJPA-905:
---------------------------------------

Running org.apache.openjpa.persistence.kernel.TestProxies2
0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
62  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
140  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
140  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
140  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
156  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
187  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
4062  TestConv  INFO   [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
63  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
141  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
141  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
141  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
157  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
204  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
4110  TestConv  INFO   [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
47  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
141  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
172  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
4078  TestConv  INFO   [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
47  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
141  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
172  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
4094  TestConv  INFO   [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
47  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
281  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
281  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
281  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
297  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
328  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
4250  TestConv  INFO   [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
47  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
141  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
172  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
4110  TestConv  INFO   [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
47  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
140  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
172  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
4047  TestConv  INFO   [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
47  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
140  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
172  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
4062  TestConv  INFO   [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
47  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
141  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
172  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
4078  TestConv  INFO   [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
0  TestConv  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT
46  TestConv  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)).
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.genericObject" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
125  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.PCClassPC.serializableInterface" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
140  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.BlobTest.blob" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
171  TestConv  WARN   [main] openjpa.MetaData - OpenJPA cannot map field "org.apache.openjpa.persistence.kernel.common.apps.DetachSMPC.relSet" efficiently.  It is of an unsupported type. The field value will be serialized to a BLOB by default.
4109  TestConv  INFO   [main] openjpa.Enhance - Creating subclass for "[class org.apache.openjpa.persistence.kernel.TestStaticInnerClasses$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner, class org.apache.openjpa.persistence.kernel.TestEJBLobs$Inner2, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$Nholder, class org.apache.openjpa.persistence.kernel.TestEJBNoPersistentFields$NoPersistentFieldsPC]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.
Tests run: 10, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 41.765 sec <<< FAILURE!
testChangeListOrder(org.apache.openjpa.persistence.kernel.TestProxies2)  Time elapsed: 4.125 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<val1> but was:<val3>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:282)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:71)
	at org.apache.openjpa.persistence.kernel.TestProxies2.testChangeListOrder(TestProxies2.java:435)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at org.apache.openjpa.persistence.test.PersistenceTestCase.runBare(PersistenceTestCase.java:443)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:173)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)


> org.apache.openjpa.persistence.kernel.TestProxies2
> --------------------------------------------------
>
>                 Key: OPENJPA-905
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-905
>             Project: OpenJPA
>          Issue Type: Sub-task
>            Reporter: Tim McConnell
>            Assignee: Tim McConnell
>


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


[jira] Commented: (OPENJPA-905) org.apache.openjpa.persistence.kernel.TestProxies2

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680738#action_12680738 ] 

Albert Lee commented on OPENJPA-905:
------------------------------------

The spec docuemnt that:

2.1.1 Persistent Fields and Properties
Collection-valued persistent fields and properties must be defined in terms of one of the following collection-
valued interfaces regardless of whether the entity class otherwise adheres to the JavaBeans
method conventions noted above and whether field or property-based access is used:
java.util.Collection, java.util.Set, java.util.List[4], java.util.Map.[5]

[4] Portable applications should not expect the order of lists to be maintained across persistence contexts unless the OrderBy construct
is used and the modifications to the list observe the specified ordering. The order is not otherwise persistent.
[5] The implementation type may be used by the application to initialize fields or properties before the entity is made persistent; subsequent
access must be through the interface type once the entity becomes managed (or detached).

So you are correct that the test is not quite correct. However the change has negated the intent of the test and become not quite meaningful.
I would suggest the following:

1) 
public class ProxiesPC implements Comparable {

    @PersistentCollection
    @OrderBy   // <<<<<  enforce ordering of the List<String>
    private List<String> list = new ArrayList();

2)
public class TestProxies2 extends BaseKernelTest {

    public void testChangeListOrder() {

        // re-retrieve to check ordering
        pm = getPM(false, false);
        pc = pm.find(ProxiesPC.class, _oid);

        list = pc.getList();
        assertEquals(5, list.size());
        assertEquals("val1", list.get(0));
        assertEquals("val1", list.get(1));
        assertEquals("val2", list.get(2));   //  <<<< make sure it is in the expected order after remove/add
        assertEquals("val3", list.get(3));
        assertEquals("val3", list.get(4));

If you think this is correct, can you please erify this patch works against the databases that had problems?

Thanks,
Albert Lee.

> org.apache.openjpa.persistence.kernel.TestProxies2
> --------------------------------------------------
>
>                 Key: OPENJPA-905
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-905
>             Project: OpenJPA
>          Issue Type: Sub-task
>            Reporter: Tim McConnell
>            Assignee: Tim McConnell
>         Attachments: OPENJPA-905.patch
>
>


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


[jira] Updated: (OPENJPA-905) org.apache.openjpa.persistence.kernel.TestProxies2

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Lee updated OPENJPA-905:
-------------------------------

          Component/s: jpa
    Affects Version/s: 2.0.0
                       1.3.0
                       1.2.2

> org.apache.openjpa.persistence.kernel.TestProxies2
> --------------------------------------------------
>
>                 Key: OPENJPA-905
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-905
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 1.2.2, 1.3.0, 2.0.0
>            Reporter: Tim McConnell
>            Assignee: Tim McConnell
>             Fix For: 2.0.0
>
>         Attachments: OPENJPA-905_2.patch
>
>


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


[jira] Updated: (OPENJPA-905) org.apache.openjpa.persistence.kernel.TestProxies2

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donald Woods updated OPENJPA-905:
---------------------------------

    Patch Info: [Patch Available]

> org.apache.openjpa.persistence.kernel.TestProxies2
> --------------------------------------------------
>
>                 Key: OPENJPA-905
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-905
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jpa
>    Affects Versions: 1.2.2, 1.3.0, 2.0.0-M2
>            Reporter: Tim McConnell
>            Assignee: Tim McConnell
>             Fix For: 2.0.0-M2
>
>         Attachments: OPENJPA-905_2.patch
>
>


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


[jira] Resolved: (OPENJPA-905) org.apache.openjpa.persistence.kernel.TestProxies2

Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Albert Lee resolved OPENJPA-905.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

> org.apache.openjpa.persistence.kernel.TestProxies2
> --------------------------------------------------
>
>                 Key: OPENJPA-905
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-905
>             Project: OpenJPA
>          Issue Type: Sub-task
>            Reporter: Tim McConnell
>            Assignee: Tim McConnell
>             Fix For: 2.0.0
>
>         Attachments: OPENJPA-905_2.patch
>
>


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