[ 
https://issues.apache.org/jira/browse/OPENJPA-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thibault Falque updated OPENJPA-2719:
-------------------------------------
    Affects Version/s: 2.4.2

> TABLE PER CLASS inheritance problem
> -----------------------------------
>
>                 Key: OPENJPA-2719
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2719
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.4.2
>            Reporter: Thibault Falque
>
> Hi,
> During a class on JPA we have noticed a bug occurring when using the
> "TABLE PER CLASS" inheritance strategy.
> The test case involves 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 JPQL
> request "SELECT g FROM Gamer g" the system returns 2 computers but the
> correct answer should be 1 (since Gamer is more specific than Destop).
> The correct answer is provided for SINGLE_TABLE and JOINED strategies.
> 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)

Reply via email to