Apache JDO Project - TestCollectionCollections [JIRA-105]

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > August 2005 > TestCollectionCollections [JIRA-105]





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author TestCollectionCollections [JIRA-105]
Andy Jefferson

2005-08-12, 7:45 am

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

Michael Watzek

2005-08-12, 5: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 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.
>
>



--
-------------------------------------------------------------------
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/
-------------------------------------------------------------------

Andy Jefferson

2005-08-12, 5: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

Michael Watzek

2005-08-12, 5:45 pm

Hi Andy,

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

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
>
> 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).
>
>



--
-------------------------------------------------------------------
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/
-------------------------------------------------------------------

Michael Watzek

2005-08-12, 5: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/
-------------------------------------------------------------------

Craig Russell

2005-08-12, 5: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!


Craig Russell

2005-08-12, 5: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!


Michael Watzek

2005-08-15, 7:45 am

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/
-------------------------------------------------------------------

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com