【发布时间】:2014-02-22 13:23:47
【问题描述】:
我试图用休眠工具来做到这一点,还有像这样的 maven:
<dependency>
<groupId>br.com.ingenieux.maven.annomojo</groupId>
<artifactId>org.jfrog.maven.maven-plugin-anno</artifactId>
<version>1.4.1</version>
</dependency>
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<!-- source output directory -->
<outputDirectory>target/metamodel</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>target/metamodel</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
我阅读了这个论坛上的帖子,但它们没有帮助。 有人可以帮我实现吗?我很困惑(我需要元模型来创建标准)
附:此链接没有说明如何制作:http://hibernate.org/orm/tooling/。我阅读了很多关于它的信息,但无法弄清楚......
【问题讨论】:
标签: java spring hibernate maven criteria