From: Andy J. (JIRA) <web...@jp...> - 2006-08-21 05:29:01
|
[ http://www.jpox.org/servlet/jira/browse/CORE-2946?page=all ] Andy Jefferson updated CORE-2946: --------------------------------- Attachment: jpox.log > Missing MetaData registration > ----------------------------- > > 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: JPOX Administrator > Attachments: MetaDataRegistrationTest.zip, jpox.log, 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 |