-
-
Notifications
You must be signed in to change notification settings - Fork 76
Description
Important Notice
Thank you for opening an issue! Please note that, as outlined in the README, I currently only work on feature requests or bug fixes when sponsored. Balancing this project with professional and personal priorities means I have a very limited amount of effort I can divert to this project.
You must put in the work to address this issue, or it won't be addressed.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
At the very beginning, I used the dependency annotationProcessor "io.github.openfeign.querydsl:querydsl-apt:7.1:general", and it successfully generated the Q-classes. However, when I tried to use methods like delete or selectFrom, I found that the required parameter type was RelationalPath, while the generated Q-classes inherited from EntityPathBase, and there was no inheritance relationship between these two classes.
I tried to solve this problem through various large language models and search engines, but achieved nothing. Later on, I came across some sample code, which unfortunately was based on Maven. What's more, the entity classes in the samples had no R2DBC-related annotations at all; instead, the relevant code was generated solely by plugins relying on class names and SQL scripts.
I then placed my entity classes annotated with @table and @QueryEntity into the entity definition directory and regenerated the code, only to find that no Q-class files were produced.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
@SuppressWarnings("this-escape")
@Generated("com.querydsl.codegen.DefaultEntitySerializer")
public class QServiceTicket extends EntityPathBase<ServiceTicket> {
private static final long serialVersionUID = 1610399776L;
public static final QServiceTicket serviceTicket = new QServiceTicket("serviceTicket");
public final DateTimePath<java.time.LocalDateTime> createTime = createDateTime("createTime", java.time.LocalDateTime.class);
public final StringPath id = createString("id");
public final StringPath service = createString("service");
public final StringPath ticket = createString("ticket");
public QServiceTicket(String variable) {
super(ServiceTicket.class, forVariable(variable));
}
public QServiceTicket(Path<? extends ServiceTicket> path) {
super(path.getType(), path.getMetadata());
}
public QServiceTicket(PathMetadata metadata) {
super(ServiceTicket.class, metadata);
}
}
```java
**Additional context**
Add any other context or screenshots about the feature request here.