You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Thibault Falque (JIRA)" <ji...@apache.org> on 2017/09/28 22:01:00 UTC
[jira] [Created] (OPENJPA-2719) TABLE PER CLASS inheritance problem
Thibault Falque created OPENJPA-2719:
----------------------------------------
Summary: TABLE PER CLASS inheritance problem
Key: OPENJPA-2719
URL: https://issues.apache.org/jira/browse/OPENJPA-2719
Project: OpenJPA
Issue Type: Bug
Reporter: Thibault Falque
Hi,
During a classroom we have noticed a bug when use the "TABLE PER CLASS" for inheritance strategy.
I have create three classes: Computer, Desktop and Gamer. Gamer extends Desktop that extends Computer.
I have a desktop and a gamer computer in the database. For the request "SELECT g FROM Gamer g" the system returns 2 computers but the correct answer should be 1.
I attached the source code with the unit tests. It is a drive link because I can't uploaded compressed files: https://drive.google.com/open?id=0B7j65u7m8zmeY2pRY0JDZE55S1U
Thanks for your help.
Thibault.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)