From ef927a664c183daee3f4b7c2da1552af95caaefb Mon Sep 17 00:00:00 2001 From: Emmanuel Bernard Date: Tue, 9 Nov 2010 18:16:59 +0100 Subject: [PATCH] METAGEN-47 Improve documentation on IntelliJ's configuration Reuse the same generated dir beteen IntelliJ and Maven Add the necessary modules for generation --- .../src/main/docbook/en-US/master.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tooling/metamodel-generator/src/main/docbook/en-US/master.xml b/tooling/metamodel-generator/src/main/docbook/en-US/master.xml index 4679d233e1..0341b0fd40 100644 --- a/tooling/metamodel-generator/src/main/docbook/en-US/master.xml +++ b/tooling/metamodel-generator/src/main/docbook/en-US/master.xml @@ -406,7 +406,7 @@ cq.where( cb.equal(itemNode.get(Item_.id), 5 ) ).distinct(true);
Idea - Intellij Idea contains from version 9.x onwards a specifc + Intellij Idea contains from version 9.x onwards a specific configuration section for annotation processing under the project settings window. The screenshots show you how to configure the Hibernate Static Metamodel Generator. @@ -423,6 +423,17 @@ cq.where( cb.equal(itemNode.get(Item_.id), 5 ) ).distinct(true); scalefit="1" /> + + In the annotation processor configuration, enable annotation + processing and select obtain from project classpath. Add the + annotation processor name + org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor + (and optionally the annotation processor options). Select the + module(s) containing your entities. If you have configured Maven as + recommended, it is best to select the same output directory for the + generated classes. At the time of writing, it is + target/generated-sources/apt. That way, the + generated classes will be available in IntelliJ Idea.