openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From janek <>
Subject Re: Subclasses instances and query
Date Fri, 10 Aug 2007 16:58:04 GMT

Hi Craig,

In attachment is entire Eclipse project. Just add dependencies and enhancer
agent. It is running on Derby.

The catch is that you must completely shut down EntityManager and Derby to
reproduce this problem.

First run Fill main method, it will create database and put two Audi
instances there. After that it makes two queries which show that problem
does not appear here. 
ie: "SELECT c FROM Car c" returns two Audi instances how it should be

After thet run Test main method. It will make two same queries, but it does
not return Audi, but Car. 

Full log from my machine is attached. 

Jan Fill.log Test.log 
View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message