Skip to content

[BUG] - Cannot use allScalarFields/allTableFields in EmbeddableFetcher #962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wushiwoming opened this issue Mar 18, 2025 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@wushiwoming
Copy link

Jimmer Version

0.9.64

JDK Version

JDK21

Database

all

OS

Windows

Expected behavior

进行SQL查询时,想要利用allScalarFields/allTableFields去获取Embeddable中的所有字段。

Actual behavior

运行时报错,在allScalarFields/allTableFields调用到的ImmutableTypeImpl中的getSelectedProps方法中获取到了空的IdProp,产生空指针

Description

None

Reproduction steps

在FetcherDSL中在定义为Embeddable的Fetcher中使用allScalarFields/allTableFields

Generated SQL

No response

Relation Model

No response

Screenshots

No response

Logs

No response

@wushiwoming wushiwoming added the bug Something isn't working label Mar 18, 2025
babyfish-ct added a commit that referenced this issue Mar 18, 2025
@babyfish-ct
Copy link
Owner

Try 0.9.68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants