Apache JDO Project - where schema name is set?

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > February 2006 > where schema name is set?





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 where schema name is set?
erik@jpox.org

2006-02-27, 5:45 pm

Hi,

Where in the TCK the schema name is set (At runtime, not at the time the schema
is created) ?

Thanks,



Michelle Caisse

2006-02-27, 5:45 pm

Hi Erik,

maven.xml generates a pmf properties file with the schema name in it.
Here's the code snippet:

<goal name="doRuntck.jdori">
<path id="this.jdori.classpath">
<pathelement
location="${jdo.tck.enhanced.dir}/${jdo.tck.identitytype}.jar"/>
<path refid="jdori.classpath"/>
</path>
<u:loadText file="${basedir}/src/conf/${jdori.pmf.properties}"
var="PMFProps"/>
<j:file name="${jdo.tck.testclasses.dir}/${jdori.pmf.properties}"
omitXmlDeclaration="true">
${PMFProps}
### Properties below added by maven goal doRuntck.jdori
<!--
javax.jdo.option.Mapping=${jdo.tck.database}${jdo.tck.mapping} -->
javax.jdo.option.Mapping=standard${jdo.tck.mapping}
javax.jdo.mapping.Schema=${schemaname}
</j:file>

The same code is in the doRuntck.iut.

-- Michelle

erik@jpox.org wrote:

>Hi,
>
>Where in the TCK the schema name is set (At runtime, not at the time the schema
>is created) ?
>
>Thanks,
>
>
>
>



erik@jpox.org

2006-02-27, 5:45 pm

Nevermind. I found it, it is automatically generated by maven adding the
property to the jdori-pmf.properties

javax.jdo.mapping.Schema

Quoting erik@jpox.org:

> Hi,
>
> Where in the TCK the schema name is set (At runtime, not at the time the
> schema
> is created) ?
>
> Thanks,
>
>
>





Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com