jakartaee / jakartaee/query

more flexible use of TREAT() in JOIN

Open
#106 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
ANTLR
Stars
17
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Persistence issue #117 reported by @beikov requested support for things like:

```hql
SELECT a FROM BaseA a
LEFT JOIN FETCH TREAT(a AS A1).a1B
LEFT JOIN FETCH TREAT(a AS A2).a2B
```

This would be very useful.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the HQL example in the issue and tracing how TREAT() expressions are handled in joins. No files or tests are named, so identify the relevant query parsing and persistence paths first; done means both TREAT() joins in the example are accepted and work as requested.

Written by the indexing model from the issue text.

Assessment

Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.