dromara / dromara/easy-query

java.lang.ClassCastException: com.xmeport.common.entity.auth.proxy.CfCorpProxy cannot be cast to com.xmeport.common.entity.auth.proxy.CfCorpProxy$CfCorpProxyFetcher

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

Description

```java
eq.queryable(CfCorp.class)
.select(o -> o.FETCHER.corpid().corpSname().corpparentid().corpPath().classflag())
.orderBy(o -> o.corpSname().asc()).toList();
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the query shown for CfCorp and inspect the definitions of CfCorpProxy, CfCorpProxyFetcher, and FETCHER. Trace where the ClassCastException occurs and compare the generated proxy type with the cast target. Done means the query completes without this exception and the selected fields and ordering still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.