dromara / dromara/easy-query

添加对Record的支持

Open
#278 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
777
Forks
78
PR merge metrics
No merged PRs in 30d

Description

目前entity模式返回指定VO时不支持record类型
```java
public record TestVO(
Integer id
) {
}

easyEntityQuery.queryable(Test.class)
.select(TestVO.class)
.toList();
```
上面代码会报错no such constructor: ……$TestVO.()void/newInvokeSpecial

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the reproduced easyEntityQuery.queryable(Test.class).select(TestVO.class).toList() example and inspect how entity-mode projections instantiate the selected VO. Compare the failing no-argument constructor invocation with Java record construction. Done means the TestVO record query returns its id without the constructor error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.