Problem with self-referencing relationship
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 > Problem with self-referencing relationship




Pages (2): [1] 2 »   Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Problem with self-referencing relationship  
Michael Bouschen


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


 
07-21-05 10:45 PM

Hi Erik, hi Andy,

when running the CompletenessTest I ran into a JDODataStoreException
saying that a column name is in more than one table in the FROM list. I
have the feeling it has to do with self-referencing relationships
(Employee<->Employee). In this case the table in the OUTER JOIN is the
same as the one in the FROM clause, so I think it needs an
identification variable. I filed a JIRA issue JDO-93 with more details
(configuration and stacktrace) for this.

Thanks!

Regards Michael
--
Michael Bouschen		Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de	http://www.tech.spree.de/
Tel.:++49/30/235 520-33		Buelowstr. 66
Fax.:++49/30/2175 2012		D-10783 Berlin






[ Post a follow-up to this message ]



    Re: Problem with self-referencing relationship  
Craig Russell


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


 
08-08-05 10:45 PM






[ Post a follow-up to this message ]



    Re: Problem with self-referencing relationship  
Andy Jefferson


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


 
08-08-05 10:45 PM

> Any update on this?

Not from me. Not had time to look at it. Don't know if Erik has.

Out of interest, how do I run this "CompletenessTest" on its own ? (since it
's
not in alltests.conf). I've tried running "companyNoRelationships.conf",
which is fine for 1 run, but if I run it again it tries to insert the same
data again and causes duplicate key issues. Tests should be cleaning
themselves out so they leave the datastore in the same state as it was at
startup (IMHO).

--
Andy






[ Post a follow-up to this message ]



    Re: Problem with self-referencing relationship  
Craig Russell


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


 
08-08-05 10:45 PM






[ Post a follow-up to this message ]



    Re: Problem with self-referencing relationship  
Craig Russell


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


 
08-08-05 10:45 PM






[ Post a follow-up to this message ]



    Re: Problem with self-referencing relationship  
Karan Malhi


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


 
08-09-05 07:45 AM

Hi Craig,

I dont know anything about this "Completeness Test" . I do know that the tck
 
requirements is that the test should leave the database in a clean state. Is
 
this what the completeness test does (check to see if db is clean)? Where do
 
i look for this test? I heard you mentioning on the conference call that i 
could run an individual test in maven, could you please tell me how to do 
that? My fostore20 tests are all having errors? Is anybody else facing the 
same problems with fostore20 (i hope its nothing to do with file permissions
 
or something-- but my guess is that should result in failures instead of 
errors)

On 8/8/05, Craig Russell <Craig.Russell@sun.com> wrote:
> 
> Hi Andy, Karan,
> On Aug 8, 2005, at 11:30 AM, Andy Jefferson wrote:
> 
> Any update on this?
> 
> 
> Not from me. Not had time to look at it. Don't know if Erik has.
> 
> Out of interest, how do I run this "CompletenessTest" on its own ? (since 
> it's 
> not in alltests.conf). I've tried running "companyNoRelationships.conf", 
> which is fine for 1 run, but if I run it again it tries to insert the same
 
> data again and causes duplicate key issues. Tests should be cleaning 
> themselves out so they leave the datastore in the same state as it was at 
> startup (IMHO).
> 
> 
> I completely agree. Please file a JIRA on this issue. CompletenessTest 
> didn't get the message about cleaning up after itself. ;-)
> 
> Karan,
> 
> This is probably a good way to learn about one of the main components of 
> our O/R mapping test framework.
> 
> Craig
> 
> 
> -- 
> Andy
> 
> 
> Craig Russell
> 
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 
> 408 276-5638 mailto:Craig.Russell@sun.com <Craig.Russell@sun.com>
> 
> P.S. A good JDO? O, Gasp!
> 
> 
> 


-- 
Karan Malhi






[ Post a follow-up to this message ]



    Re: Problem with self-referencing relationship  
Craig Russell


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


 
08-09-05 07:45 AM






[ Post a follow-up to this message ]



    RE: Problem with self-referencing relationship  


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


 
08-09-05 12:45 PM

Not from me too. I'm VERY busy in my FULL time job. I will come back
later this week.

Erik Bengtson

> -----Original Message-----
> From: Andy Jefferson [mailto:andy@jpox.org]
> Sent: Monday, August 08, 2005 8:31 PM
> To: jdo-dev@db.apache.org
> Subject: Re: Problem with self-referencing relationship
> 
>
> Not from me. Not had time to look at it. Don't know if Erik has.
>
> Out of interest, how do I run this "CompletenessTest" on its own ?
(since
> it's
> not in alltests.conf). I've tried running
"companyNoRelationships.conf",
> which is fine for 1 run, but if I run it again it tries to insert the
same
> data again and causes duplicate key issues. Tests should be cleaning
> themselves out so they leave the datastore in the same state as it was
at
> startup (IMHO).
>
> --
> Andy







[ Post a follow-up to this message ]



    Re: Problem with self-referencing relationship  
Michael Watzek


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


 
08-10-05 01:45 AM

Hi Andy,

I can run "companyNoRelationships.conf" several times without
reinstalling the schema. The result is always the same:

"SQL Exception: Column name
'DATASTOREIDENTITY0.PERSONS.DATASTORE_IDENTITY' is in more than one
table in the FROM list."

This is JDO-93. I cannot reproduce JDO-116. Have there been any other
exceptions when you ran "companyNoRelationships.conf" the first time?

Regards,
Michael 
>
>
> Not from me. Not had time to look at it. Don't know if Erik has.
>
> Out of interest, how do I run this "CompletenessTest" on its own ? (since 
it's
> not in alltests.conf). I've tried running "companyNoRelationships.conf",
> which is fine for 1 run, but if I run it again it tries to insert the same
> data again and causes duplicate key issues. Tests should be cleaning
> themselves out so they leave the datastore in the same state as it was at
> startup (IMHO).
>


--
-------------------------------------------------------------------
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: Problem with self-referencing relationship  
Andy Jefferson


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


 
08-10-05 01:45 AM

> I can run "companyNoRelationships.conf" several times without
> reinstalling the schema. The result is always the same:

Hi Michael,

I get the same as you, today! but certainly didn't yesterday. Since I can't
reproduce it myself now, someone please just close the issue (JIRA-116) and
if I find what was causing it I'll re-raise it with clearer instructions :-)



On an unrelated note, can someone please add the following 2 lines to
"test/conf/logging.properties"

log4j.category.com.mchange.v2.c3p0=INFO, A1
log4j.category.com.mchange.v2.resourcepool=INFO, A1

These will mean that the message on the console :-
log4j:WARN No appenders could be found for logger (com.mchange.v2.log.MLog).
log4j:WARN Please initialize the log4j system properly.

when running the TCK (coming from C3P0) will not appear.




--
Andy






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:14 AM.      Post New Thread    Post A Reply      
Pages (2): [1] 2 »   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