[英]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.