Hibernate的新脏检查策略是在HHH-8354中引入的。我对使用(也是新的)maven compile time enhancement在项目中使用该改进感兴趣,但是没有关于这些新功能的文档或说明。

据我了解,pom需要看起来像这样:

<plugins>
    ....
    <plugin>
        <groupId>org.hibernate.orm.tooling</groupId>
        <artifactId>hibernate-enhance-maven-plugin</artifactId>
        <version>4.3.5.Final</version>
        <executions>
            <execution>
                <phase>compile</phase>
                <goals>
                    <goal>enhance</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
</plugins>


但是由于某些原因,Eclipse无法识别enhance目标。另外,我想进一步配置它以排除文件夹和文件(其他配置voodoo帮助也将不胜感激)

最佳答案

我用this作为答案。这些评论还有助于解决相关问题和解释

07-24 19:06
查看更多