Java – jeooq does not generate Dao with flag set to true

I have refreshed my project, rebuilt it cleanly, searched for similar problems in stackoverflow with Google, read the jooq documents, checked the potential issues of the build output, and so on

I added a < Daos > tag to my POM XML to generate the jooq database access object, because jooq 3.2 0 online manual says "Dao generation can be activated using Daos flag" Setting this flag to true according to the jooq advanced CodeGen documentation will not only generate Dao, but also generate relationships, records and POJOs:

<generator>
    ...
    <generate>
        <daos>true</daos>
    </generate>   
</generator>

Before adding flags to my POM, I had automatically generated records and relationships, but neither POJO nor Dao After adding the Daos flag and rebuilding my project, I also have POJOs and two others, but I still don't have any Dao The attached screenshot shows the class I generated The class added by the flag is in the blue box I think there should be a package called "Daos", which contains purchasedao and userdao classes

The jeooq Dao documentation does not explain any case where a flag is added but a Dao is not generated Part of the focus of the project is to learn qooq, so manually coding Dao with qooq class can't solve my problem

Editor: my SQLite 3.7 from working and non working solutions 11 mode is here

Solution

I found Dao skipping in your console output,

After that, the cheked code is found

// [#2573] Skip DAOs for tables that don't have 1-column-PKs (for Now)
1287        if (keyColumn == null) {
1288            log.info("Skipping DAO generation",getStrategy().getFileName(table,Mode.DAO));
1289            return;
1290        }
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>