Hi,
configurations "schemaAttributeOrm.conf" (Mapping 5),
"schemaAttributePackage.conf" (Mapping 6), and
"schemaAttributeClass.conf" (Mapping 7) run test MakePersistent which
inherits from PersistenceManagerTest.
Class PersistentManagerTest implements localSetUp adding tear down
classes PCRect, PCPoint, Department, and Company. But Department and
Company are not contained in Mappings 5, 6, and 7. I propose to redefine
localSetUp in MakePersistent accordingly.
Perhaps it makes sense to add a comment to ORM metadata of mappings 5,
6, and 7. All of these mappings overwrite the default schema name passed
as PMF property. Those mappings assign a schema name which does not
comply to our schema name convention <identitytype><mapping>. A comment
would just be helpful to understand that this is done on purpose.
Regards,
Michael
Craig L Russell wrote:
Hi,
This is clearly a bug, from your description. The reason it was working
before was a counterbalancing bug in JPOX?
Michelle, can you take a look at it?
Thanks,
Craig
On Mar 27, 2006, at 11:35 PM, Andy Jefferson wrote:
Some more information, having tried with Erik's recent changes to JPOX.
Take the example of configuration "schemaAttributePackage.conf".
This is passing the "javax.jdo.mapping.Schema" property as
"datastoreidentity6".
In the MetaData files (for PCPoint) it is using
"datastoreidentity_pkg" (where
the schema for PCPoint is actually created)
The test itself runs fine since JPOX is using "datastoreidentity_pkg"
and so passes.
JDO_Test tearDown works fine on the delete of PCPoint (since that
class is in
"datastoreidentity_pkg" schema)
JDO_Test tearDown is also trying to delete data from "pc/company" too
... which
doesn't have such schema MetaData settings and so these fall back to the
"datastoreidentity6" schema that was passed to the PMF. This schema
doesnt exist!
--
Andy
Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:[EMAIL PROTECTED]
P.S. A good JDO? O, Gasp!
--
-------------------------------------------------------------------
Michael Watzek [EMAIL PROTECTED] Engineering GmbH
mailto:[EMAIL PROTECTED] Buelowstr. 66
Tel.: ++49/30/235 520 36 10783 Berlin - Germany
Fax.: ++49/30/217 520 12 http://www.spree.de/
-------------------------------------------------------------------