From: Tony L. (JIRA) <web...@jp...> - 2006-08-21 15:44:00
|
[ http://www.jpox.org/servlet/jira/browse/CORE-2946?page=comments#action_13032 ] Tony Lai commented on CORE-2946: -------------------------------- Thanks, Andy. You are fast. I was downloading hsqldb 1.8.0.4 for testing. The one I used to have was 1.8.0. Anyway, I am glad another mystery is resolved. > Missing MetaData registration for HSQL when using SchemaTable autostart > ----------------------------------------------------------------------- > > Key: CORE-2946 > URL: http://www.jpox.org/servlet/jira/browse/CORE-2946 > Project: Core > Type: Bug > Components: Schema tool > Versions: 1.1.1 > Reporter: Tony Lai > Assignee: Andy Jefferson > Fix For: 1.1.2 > Attachments: MetaDataRegistrationTest.zip, jpox.log, patchCORE-2946.txt, test.jar > > We have 2 simple persistent classes, Person and Employee. The Employee is a subclass of Person, and they are in different packages. > We first insert an Employee, stop the application, and start another one to execute a query. If the default org.jpox.autoStartMechanism option SchemaTable works well, we should be able to get an instance of Employee back, in a simple query with include instances of subclasses parameter setting to true. > The current implementation returns instances of Person, because the MetaDataManager in the PMF of the new application does not know the Employee class is a subclass of Person. > This issue was posted at: http://www.jpox.org/servlet/forum/viewthread?thread=3671 > A valid unit testcase is provided, although it currently subclass from JUnit's TestCase instead of JPOX's CorePersistenceTestCase as other JPOX testcases do. Someone can easily change the superclass if necessary. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://www.jpox.org/servlet/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |