|
Home > Archive > Apache JDO Project > September 2005 > installSchema goal
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 |
installSchema goal
|
|
| karan malhi 2005-09-05, 5:45 pm |
| Is there a property for the installSchema goal where i can specify that
i want schema1.sql of applicationIdentity to be created i.e. if i run
installSchema i would like to be more specific than specifying whether i
want applicationIdentity or datastoreidentity schemas to be installed.
--
Karan Singh
| |
| Michael Watzek 2005-09-05, 5:45 pm |
| Hi Karan,
you may install a schema of a particular configuration executing
maven -Djdo.tck.cfglist=<configuration> InstallSchema
Replace <configuration> by a configuration file name which you find in
"test/conf". All configuration files have the suffix ".conf".
If you want to install a particular schema for application identity,
then execute
maven -Djdo.tck.cfglist=<configuration>
-Djdo.tck.identitytypes=applicationidentity InstallSchema
Does this help?
Regards,
Michael
> Is there a property for the installSchema goal where i can specify that
> i want schema1.sql of applicationIdentity to be created i.e. if i run
> installSchema i would like to be more specific than specifying whether i
> want applicationIdentity or datastoreidentity schemas to be installed.
>
--
-------------------------------------------------------------------
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/
-------------------------------------------------------------------
| |
| karan malhi 2005-09-05, 5:45 pm |
|
Thanks Michael,
Also, do i have to installSchema for all inheritance configuration after
each test run? This is because for relationship tests i know i just need
to installSchema once, but for inheritance tests , the moment i run the
test the second time, i get a primary key / duplicate key exception.
Michael Watzek wrote:
> Hi Karan,
>
> you may install a schema of a particular configuration executing
>
> maven -Djdo.tck.cfglist=<configuration> InstallSchema
>
> Replace <configuration> by a configuration file name which you find in
> "test/conf". All configuration files have the suffix ".conf".
>
> If you want to install a particular schema for application identity,
> then execute
>
> maven -Djdo.tck.cfglist=<configuration>
> -Djdo.tck.identitytypes=applicationidentity InstallSchema
>
> Does this help?
>
> Regards,
> Michael
>
>
>
--
Karan Singh
| |
| Michael Watzek 2005-09-05, 5:45 pm |
| Hi Karan,
the goal is to install schemas only once. Unfortunately, you run into a
bug. It appears, that there is an exception during tear down when you
run the test the first time.
Please file a JIRA issue. I'll look into this issue tomorrow.
Regards,
Michael
>
> Thanks Michael,
>
> Also, do i have to installSchema for all inheritance configuration after
> each test run? This is because for relationship tests i know i just need
> to installSchema once, but for inheritance tests , the moment i run the
> test the second time, i get a primary key / duplicate key exception.
>
>
>
> Michael Watzek wrote:
>
>
--
-------------------------------------------------------------------
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-09-05, 5:45 pm |
| > for inheritance tests , the moment i run the
> test the second time, i get a primary key / duplicate key exception.
Hi Karan,
the issue you have with the first inheritance test about PK exceptions is due
to a failure in tearDown() the first time it was run. This is fixed in JPOX
CVS and will be in the next nightly build dated 06/09/2005, meaning that
"inheritance1" test will pass (and you won't get any problems with PK
exceptions the second time round).
--
Andy
| |
| karan malhi 2005-09-05, 5:45 pm |
| Thanks Andy.
Michael:
Andy says that we should be able to obtain the fix by 09/06. Do you
still want me to file the JIRA issue or wait till tomorrow?
Andy Jefferson wrote:
>
>Hi Karan,
>
>the issue you have with the first inheritance test about PK exceptions is due
>to a failure in tearDown() the first time it was run. This is fixed in JPOX
>CVS and will be in the next nightly build dated 06/09/2005, meaning that
>"inheritance1" test will pass (and you won't get any problems with PK
>exceptions the second time round).
>
>
>
--
Karan Singh
| |
| Michael Watzek 2005-09-06, 7:45 am |
| Hi Karan,
the fix of JPOX version 09/06 works fine. So, there is no need to file a
JIRA issue.
Thanks,
Michael
> Thanks Andy.
>
> Michael:
>
> Andy says that we should be able to obtain the fix by 09/06. Do you
> still want me to file the JIRA issue or wait till tomorrow?
>
> Andy Jefferson wrote:
>
>
--
-------------------------------------------------------------------
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/
-------------------------------------------------------------------
|
|
|
|
|