简体   繁体   English

如何使用QueryDsl Maven插件生成RelationalPath Derived类?

[英]How to generate RelationalPath Derived class using QueryDsl Maven plugin?

I've generated EntityBasePath derived classes of my entities using the QueryDsl maven plugin. 我使用QueryDsl maven插件生成了我的实体的EntityBasePath派生类。 But I want that the plugin generate classes that derived from RelationalPath of the QueryDsl class to use it in the DML operations. 但我希望插件生成从QueryDsl类的RelationalPath派生的类,以便在DML操作中使用它。 How can I do this thing? 我该怎么办呢?

As @Timo Westkämper feedback You can't turn it into a RelationalPath automatically @TimoWestkämper反馈您无法自动将其转换为RelationalPath

but you can create RelationalPathBase using your entityPath 但您可以使用entityPath创建RelationalPathBase

RelationalPathBase relationalPathBase= new RelationalPathBase(this.entityPath.getType(), this.entityPath.getMetadata(), "yourSchemaName","yourTableName");

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 带有JDBC的Querydsl-Maven配置(querydsl插件不会生成Q类) - Querydsl with jdbc - Maven configuration(querydsl plugin doesn't generate Q class) QueryDsl 不会使用 Spring Boot 和 Maven 生成 Q class - QueryDsl doesn't generate Q class using Spring Boot and Maven 如何使用Maven在Eclipse Kepler中生成querydsl源代码 - How to generate querydsl source code in eclipse kepler using maven 如何告诉querydsl-maven-plugin使用Long而不是BigDecimal生成NumberPath? - How can I tell querydsl-maven-plugin to generate NumberPath with Long instead of BigDecimal? 如何使用 openapi-generator-maven-plugin 生成没有属性的基础 model class - How to generate a base model class that has no properties using openapi-generator-maven-plugin 使用带有groovy-eclipse-compiler的querydsl-maven-plugin生成QueryDsl类 - generating QueryDsl classes using querydsl-maven-plugin with groovy-eclipse-compiler 如何使用 swagger-codegen-plugin (maven) 生成客户端代码? - How to generate client code using with swagger-codegen-plugin (maven)? 如何使用 springdoc-openapi-maven-plugin 和 swagger-codegen-maven-plugin 生成客户端代码? - How to generate client code using springdoc-openapi-maven-plugin and swagger-codegen-maven-plugin? 如何使用 swagger-codegen-maven 插件在 boolean 上生成 getter - how to generate getter on boolean using swagger-codegen-maven plugin 如何使用maven-plugin-plugin生成Fat Maven插件? - How generate a Fat Maven Plugin with maven-plugin-plugin?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM