简体   繁体   中英

How to generate RelationalPath Derived class using QueryDsl Maven plugin?

I've generated EntityBasePath derived classes of my entities using the QueryDsl maven plugin. But I want that the plugin generate classes that derived from RelationalPath of the QueryDsl class to use it in the DML operations. How can I do this thing?

As @Timo Westkämper feedback You can't turn it into a RelationalPath automatically

but you can create RelationalPathBase using your entityPath

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM