TestCollectionCollections [JIRA-105]
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > TestCollectionCollections [JIRA-105]




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    TestCollectionCollections [JIRA-105]  
Andy Jefferson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-12-05 12:45 PM

CollectionCollections has a field "CollectionOfSimpleClass3" which maps to
join table COLLECTION_OF_SIMPLE_CLASS3 with an element column called
"SIMPCLSREF". This doesn't exist - it's called "SIMPINTERFREF" in the schema
for that table. [There are probably other fields in this class with the 
same
issue, but this is the first one encountered so an error is thrown there]

This is the cause of JIRA-105.


--
Andy






[ Post a follow-up to this message ]



    Re: TestCollectionCollections [JIRA-105]  
Michael Watzek


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-12-05 10:45 PM

Hi Andy,

you are right: The ORM metadata does not match the schema. A while ago,
I have fixed the same issue in classes "HashXXX", "ListXXX", "MapXXX"
etc. Obviously, I have overlooked the issue in class
"CollectionCollections". I'll fix this and I'll also check classes
"ArrayXXX".

Regards,
Michael

> CollectionCollections has a field "CollectionOfSimpleClass3" which maps to
> join table COLLECTION_OF_SIMPLE_CLASS3 with an element column called
> "SIMPCLSREF". This doesn't exist - it's called "SIMPINTERFREF" in the sche
ma
> for that table. [There are probably other fields in this class with th
e same
> issue, but this is the first one encountered so an error is thrown there]
>
> This is the cause of JIRA-105.
>
>


--
-------------------------------------------------------------------
Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/
-------------------------------------------------------------------






[ Post a follow-up to this message ]



    Re: TestCollectionCollections [JIRA-105]  
Andy Jefferson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-12-05 10:45 PM

Hi Michael,

> you are right: The ORM metadata does not match the schema. A while ago,
> I have fixed the same issue in classes "HashXXX", "ListXXX", "MapXXX"
> etc. Obviously, I have overlooked the issue in class
> "CollectionCollections". I'll fix this and I'll also check classes
> "ArrayXXX".

Thanks.
It's only CollectionCollections that has this problem - I've already checked
!

Once this issue is fixed then all of the HashXXX, ListXXX, CollectionXXX,
MapXXX, ArrayListXXX will need a fix adding for JDO-106 (I've commented the
JIRA for that one with what the problem is there).


--
Andy






[ Post a follow-up to this message ]



    Re: TestCollectionCollections [JIRA-105]  
Michael Watzek


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-12-05 10:45 PM

Hi Andy,

> Hi Michael,
>
> 
>
>
> Thanks.
> It's only CollectionCollections that has this problem - I've already checked![/vbc
ol]
Actually, ArrayCollections is correct but ArrayListCollections has the
same issue. And there are two leftovers in TreeMapStringKeyCollections.
I'll send a patch today.

Regards,
Michael[vbcol=seagreen]
>
> Once this issue is fixed then all of the HashXXX, ListXXX, CollectionXXX,
> MapXXX, ArrayListXXX will need a fix adding for JDO-106 (I've commented th
e
> JIRA for that one with what the problem is there).
>
>


--
-------------------------------------------------------------------
Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/
-------------------------------------------------------------------






[ Post a follow-up to this message ]



    Re: TestCollectionCollections [JIRA-105]  
Michael Watzek


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-12-05 10:45 PM

Hi,

please find the patch fixing the mismatch between ORM metadata and
schema wrt classes "CollectionCollections", "ArrayListCollections", and
"TreeMapStringKeyCollections".

Note, that the tests "TestCollectionCollections" etc. still fail. That's
why I filed a new issue (JDO-119). I changed the status to resolved.

Regards,
Michael
> Hi Andy,
> 
>
> Actually, ArrayCollections is correct but ArrayListCollections has the
> same issue. And there are two leftovers in TreeMapStringKeyCollections.
> I'll send a patch today.
>
> Regards,
> Michael
> 
>
>


--
-------------------------------------------------------------------
Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/
-------------------------------------------------------------------






[ Post a follow-up to this message ]



    Re: TestCollectionCollections [JIRA-105]  
Craig Russell


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-12-05 10:45 PM

Hi Michael,

This patch failed to apply. There were some changes to the schema
since your patch.

Craig

On Aug 12, 2005, at 7:49 AM, Michael Watzek wrote:

> Hi,
>
> please find the patch fixing the mismatch between ORM metadata and
> schema wrt classes "CollectionCollections", "ArrayListCollections",
> and "TreeMapStringKeyCollections".
>
> Note, that the tests "TestCollectionCollections" etc. still fail.
> That's why I filed a new issue (JDO-119). I changed the status to
> resolved.
>
> Regards,
> Michael
> 
>
>
> --
> -------------------------------------------------------------------
> Michael Watzek                  Tech@Spree Engineering GmbH
> mailto:mwa.tech@spree.de        Buelowstr. 66
> Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
> Fax.:  ++49/30/217 520 12       http://www.spree.de/
> -------------------------------------------------------------------
> Index: test/sql/derby/datastoreidentity/schema.sql
>  ========================================
===========================
> --- test/sql/derby/datastoreidentity/schema.sql    (revision 232227)
> +++ test/sql/derby/datastoreidentity/schema.sql    (working copy)
> @@ -2869,37 +2869,37 @@
>  CREATE TABLE COLLECTION_OF_SIMPLE_CLASS3
>  (
>      IDENTIFIER INTEGER REFERENCES COLLECTION_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
> +    SIMPCLSREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
>  );
>
>  CREATE TABLE COLLECTION_OF_SIMPLE_CLASS4
>  (
>      IDENTIFIER INTEGER REFERENCES COLLECTION_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
> +    SIMPCLSREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
>  );
>
>  CREATE TABLE COLLECTION_OF_SIMPLE_CLASS5
>  (
>      IDENTIFIER INTEGER REFERENCES COLLECTION_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
> +    SIMPCLSREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
>  );
>
>  CREATE TABLE COLLECTION_OF_SIMPLE_INTERFACE6
>  (
>      IDENTIFIER INTEGER REFERENCES COLLECTION_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
>  );
>
>  CREATE TABLE COLLECTION_OF_SIMPLE_INTERFACE7
>  (
>      IDENTIFIER INTEGER REFERENCES COLLECTION_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
>  );
>
>  CREATE TABLE COLLECTION_OF_SIMPLE_INTERFACE8
>  (
>      IDENTIFIER INTEGER REFERENCES COLLECTION_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
>  );
>
>  CREATE TABLE COLLECTION_OF_STRING9
> @@ -3315,42 +3315,42 @@
>  CREATE TABLE ARRAYLIST_OF_SIMPLE_CLASS3
>  (
>      IDENTIFIER INTEGER REFERENCES ARRAYLIST_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPCLSREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
>  CREATE TABLE ARRAYLIST_OF_SIMPLE_CLASS4
>  (
>      IDENTIFIER INTEGER REFERENCES ARRAYLIST_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPCLSREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
>  CREATE TABLE ARRAYLIST_OF_SIMPLE_CLASS5
>  (
>      IDENTIFIER INTEGER REFERENCES ARRAYLIST_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPCLSREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
>  CREATE TABLE ARRAYLIST_OF_SIMPLE_INTERFACE6
>  (
>      IDENTIFIER INTEGER REFERENCES ARRAYLIST_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
>  CREATE TABLE ARRAYLIST_OF_SIMPLE_INTERFACE7
>  (
>      IDENTIFIER INTEGER REFERENCES ARRAYLIST_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
>  CREATE TABLE ARRAYLIST_OF_SIMPLE_INTERFACE8
>  (
>      IDENTIFIER INTEGER REFERENCES ARRAYLIST_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
> @@ -6881,7 +6881,7 @@
>  (
>      IDENTIFIER INTEGER REFERENCES TREEMAPSTRINGKEY_COLLECTIONS NOT
> NULL,
>      KEYVAL VARCHAR(100) NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
> @@ -6889,7 +6889,7 @@
>  (
>      IDENTIFIER INTEGER REFERENCES TREEMAPSTRINGKEY_COLLECTIONS NOT
> NULL,
>      KEYVAL VARCHAR(100) NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
> Index: test/sql/derby/applicationidentity/schema.sql
>  ========================================
===========================
> --- test/sql/derby/applicationidentity/schema.sql    (revision 232227)
> +++ test/sql/derby/applicationidentity/schema.sql    (working copy)
> @@ -2893,37 +2893,37 @@
>  CREATE TABLE COLLECTION_OF_SIMPLE_CLASS3
>  (
>      IDENTIFIER INTEGER REFERENCES COLLECTION_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
> +    SIMPCLSREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
>  );
>
>  CREATE TABLE COLLECTION_OF_SIMPLE_CLASS4
>  (
>      IDENTIFIER INTEGER REFERENCES COLLECTION_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
> +    SIMPCLSREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
>  );
>
>  CREATE TABLE COLLECTION_OF_SIMPLE_CLASS5
>  (
>      IDENTIFIER INTEGER REFERENCES COLLECTION_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
> +    SIMPCLSREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
>  );
>
>  CREATE TABLE COLLECTION_OF_SIMPLE_INTERFACE6
>  (
>      IDENTIFIER INTEGER REFERENCES COLLECTION_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
>  );
>
>  CREATE TABLE COLLECTION_OF_SIMPLE_INTERFACE7
>  (
>      IDENTIFIER INTEGER REFERENCES COLLECTION_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
>  );
>
>  CREATE TABLE COLLECTION_OF_SIMPLE_INTERFACE8
>  (
>      IDENTIFIER INTEGER REFERENCES COLLECTION_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL
>  );
>
>  CREATE TABLE COLLECTION_OF_STRING9
> @@ -3337,42 +3337,42 @@
>  CREATE TABLE ARRAYLIST_OF_SIMPLE_CLASS3
>  (
>      IDENTIFIER INTEGER REFERENCES ARRAYLIST_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPCLSREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
>  CREATE TABLE ARRAYLIST_OF_SIMPLE_CLASS4
>  (
>      IDENTIFIER INTEGER REFERENCES ARRAYLIST_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPCLSREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
>  CREATE TABLE ARRAYLIST_OF_SIMPLE_CLASS5
>  (
>      IDENTIFIER INTEGER REFERENCES ARRAYLIST_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPCLSREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
>  CREATE TABLE ARRAYLIST_OF_SIMPLE_INTERFACE6
>  (
>      IDENTIFIER INTEGER REFERENCES ARRAYLIST_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
>  CREATE TABLE ARRAYLIST_OF_SIMPLE_INTERFACE7
>  (
>      IDENTIFIER INTEGER REFERENCES ARRAYLIST_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
>  CREATE TABLE ARRAYLIST_OF_SIMPLE_INTERFACE8
>  (
>      IDENTIFIER INTEGER REFERENCES ARRAYLIST_COLLECTIONS NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
> @@ -6890,7 +6890,7 @@
>  (
>      IDENTIFIER INTEGER REFERENCES TREEMAPSTRINGKEY_COLLECTIONS NOT
> NULL,
>      KEYVAL VARCHAR(100) NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
> @@ -6898,7 +6898,7 @@
>  (
>      IDENTIFIER INTEGER REFERENCES TREEMAPSTRINGKEY_COLLECTIONS NOT
> NULL,
>      KEYVAL VARCHAR(100) NOT NULL,
> -    SIMPINTERFREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
> +    SIMPINTREF BIGINT REFERENCES SIMPLE_CLASS NOT NULL,
>      INDEX INTEGER NOT NULL
>  );
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!







[ Post a follow-up to this message ]



    Re: TestCollectionCollections [JIRA-105]  
Craig Russell


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-12-05 10:45 PM

Hi Michael,

Please hold off any changes. Michelle is going to be working on the
schema and orm files based on our discussion at the TCK conference
call. So Michelle will update the schema and orm to match.

Thanks,

Craig

On Aug 12, 2005, at 11:27 AM, Craig Russell wrote:

> Hi Michael,
>
> This patch failed to apply. There were some changes to the schema
> since your patch.
>
> Craig
>
> On Aug 12, 2005, at 7:49 AM, Michael Watzek wrote:
>
> 
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!







[ Post a follow-up to this message ]



    Re: TestCollectionCollections [JIRA-105]  
Michael Watzek


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-15-05 12:45 PM

Ok!

Craig Russell wrote:
> Hi Michael,
>
> Please hold off any changes. Michelle is going to be working on the
> schema and orm files based on our discussion at the TCK conference
> call. So Michelle will update the schema and orm to match.
>
> Thanks,
>
> Craig
>
> On Aug 12, 2005, at 11:27 AM, Craig Russell wrote:
> 
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>
>


--
-------------------------------------------------------------------
Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/
-------------------------------------------------------------------






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:27 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register