cristof commented on PR #189:
URL: https://github.com/apache/openjpa/pull/189#issuecomment-5679098531
@rzo1 , could you add, in your tests, a revision number for both software
and game, and a genre for game, and add the following tests? It seems to fail
when using WHERE TREAT:
```
public void testTreatInWhereExclusiveProperty() {
try (EntityManager em = emf.createEntityManager()){
List<String> results = em.createQuery(
"SELECT p.name FROM TProduct p WHERE TREAT(p AS
TGameProduct).genre = 'FPS'",
String.class).getResultList();
assertEquals(List.of("Game"), results);
}
}
public void testTreatInWhereCommonProperty() {
try (EntityManager em = emf.createEntityManager()){
List<String> results = em.createQuery(
"SELECT p.name FROM TProduct p WHERE TREAT(p AS
TGameProduct).revisionNumber = 2.0",
String.class).getResultList();
assertEquals(List.of("Game"), results);
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]