<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: JPA 2.0 Typesafe Criteria API and Annotation Processing Howto</title>
	<atom:link href="http://blogs.jetbrains.com/idea/2009/11/userfriendly-annotation-processing-support-jpa-20-metamodel/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.jetbrains.com/idea/2009/11/userfriendly-annotation-processing-support-jpa-20-metamodel/</link>
	<description>tips &#38; tricks, news, how-to's</description>
	<pubDate>Fri, 19 Mar 2010 17:49:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Gregory Shrago</title>
		<link>http://blogs.jetbrains.com/idea/2009/11/userfriendly-annotation-processing-support-jpa-20-metamodel/#comment-128109</link>
		<dc:creator>Gregory Shrago</dc:creator>
		<pubDate>Tue, 09 Mar 2010 13:54:11 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/idea/?p=2396#comment-128109</guid>
		<description>Annotation Processing is integrated into compiler pipeline thus things could not get out-of-date silently as regeneration is performed on each comile/make/build all. The whole purpose of a separate "Process Annotations" action is to forcibly regenerate sources when Java compilation is undesirable i.e. a project doesn't compile but we would like to have completion/navigation/etc. for JPA metamodel.</description>
		<content:encoded><![CDATA[<p>Annotation Processing is integrated into compiler pipeline thus things could not get out-of-date silently as regeneration is performed on each comile/make/build all. The whole purpose of a separate &#8220;Process Annotations&#8221; action is to forcibly regenerate sources when Java compilation is undesirable i.e. a project doesn&#8217;t compile but we would like to have completion/navigation/etc. for JPA metamodel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noah</title>
		<link>http://blogs.jetbrains.com/idea/2009/11/userfriendly-annotation-processing-support-jpa-20-metamodel/#comment-127642</link>
		<dc:creator>Noah</dc:creator>
		<pubDate>Thu, 04 Mar 2010 17:01:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/idea/?p=2396#comment-127642</guid>
		<description>Gregory,

Thanks for the information. I'll try the simple "Compile" action. Your point is taken about mixing the generated and static sources. Things could get silently out-of-date if you don't have the auto generation wired up via ant/ipr/maven or some other automatic mechanism when you compile. 

-Noah</description>
		<content:encoded><![CDATA[<p>Gregory,</p>
<p>Thanks for the information. I&#8217;ll try the simple &#8220;Compile&#8221; action. Your point is taken about mixing the generated and static sources. Things could get silently out-of-date if you don&#8217;t have the auto generation wired up via ant/ipr/maven or some other automatic mechanism when you compile. </p>
<p>-Noah</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory Shrago</title>
		<link>http://blogs.jetbrains.com/idea/2009/11/userfriendly-annotation-processing-support-jpa-20-metamodel/#comment-127638</link>
		<dc:creator>Gregory Shrago</dc:creator>
		<pubDate>Thu, 04 Mar 2010 16:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/idea/?p=2396#comment-127638</guid>
		<description>As described here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=302450
EclipseLink processor expects persistence.xml in CLASS_OUTPUT (which is wierd) thus preventing "Process Annotations" action from working correctly but simple "Compile" action works fine if the persistence.xml is under some source root/META-INF/. I've checked it with eclipselink.persistencexml=META-INF/persistence.xml option.

We've added the warning about generated_src directory clearing in settings dialog and we have changed the "Process Annotation" action (will be available in the next EAP).
One should never mix real sources and generated ones otherwise it is not possible to "rebuild all" correctly.</description>
		<content:encoded><![CDATA[<p>As described here:<br />
<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=302450" rel="nofollow">https://bugs.eclipse.org/bugs/show_bug.cgi?id=302450</a><br />
EclipseLink processor expects persistence.xml in CLASS_OUTPUT (which is wierd) thus preventing &#8220;Process Annotations&#8221; action from working correctly but simple &#8220;Compile&#8221; action works fine if the persistence.xml is under some source root/META-INF/. I&#8217;ve checked it with eclipselink.persistencexml=META-INF/persistence.xml option.</p>
<p>We&#8217;ve added the warning about generated_src directory clearing in settings dialog and we have changed the &#8220;Process Annotation&#8221; action (will be available in the next EAP).<br />
One should never mix real sources and generated ones otherwise it is not possible to &#8220;rebuild all&#8221; correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory Shrago</title>
		<link>http://blogs.jetbrains.com/idea/2009/11/userfriendly-annotation-processing-support-jpa-20-metamodel/#comment-127553</link>
		<dc:creator>Gregory Shrago</dc:creator>
		<pubDate>Wed, 03 Mar 2010 16:32:29 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/idea/?p=2396#comment-127553</guid>
		<description>There is indeed a problem. We are working to make CanonicalModelProcessor happy. It appears to be very restrictive when it comes to paths.</description>
		<content:encoded><![CDATA[<p>There is indeed a problem. We are working to make CanonicalModelProcessor happy. It appears to be very restrictive when it comes to paths.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noah</title>
		<link>http://blogs.jetbrains.com/idea/2009/11/userfriendly-annotation-processing-support-jpa-20-metamodel/#comment-127458</link>
		<dc:creator>Noah</dc:creator>
		<pubDate>Tue, 02 Mar 2010 15:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/idea/?p=2396#comment-127458</guid>
		<description>Hi, 

I tried setting things up for Eclipselink but the Build -&#62; Process Annotations menu remains grayed out after completing these steps.  When I rebuilt my project it deleted my src directory since I had tried to point the generated classes folder to my src folder so that the generated classes would be side by side with the entity classes. so I can check them in.  There should definitely be a warning that it deletes that directory! 

I'm not sure what IDEA is setting the processors working directory to but in the case of Eclipselink I have one processor run option set like so:

eclipselink.persistencexml=web/META-INF/persistence.xml but when I rebuild the project I get an error saying "Unable to load persistence.xml G:\sandbox\trunk\myproject\build\production\myproject\web\META-INF\persistence.xml" 

I tried changing the value if the option to be a relative path from the build\production\myproject folder back to my persistence.xml file like so:

eclipselink.persistencexml=../../../web/META-INF/persistence.xml

but that gave me the following error:

java.lang.IllegalArguementException: relativeName is invalid

Has anyone set this up with Eclipselink? BTW, I can generate them by hand on the command link with "javac -processor org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor ..." so I know I have my options and classpath information correct and I am just not understanding the magic to make IDEA happy. Thanks,

-Noah</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I tried setting things up for Eclipselink but the Build -&gt; Process Annotations menu remains grayed out after completing these steps.  When I rebuilt my project it deleted my src directory since I had tried to point the generated classes folder to my src folder so that the generated classes would be side by side with the entity classes. so I can check them in.  There should definitely be a warning that it deletes that directory! </p>
<p>I&#8217;m not sure what IDEA is setting the processors working directory to but in the case of Eclipselink I have one processor run option set like so:</p>
<p>eclipselink.persistencexml=web/META-INF/persistence.xml but when I rebuild the project I get an error saying &#8220;Unable to load persistence.xml G:\sandbox\trunk\myproject\build\production\myproject\web\META-INF\persistence.xml&#8221; </p>
<p>I tried changing the value if the option to be a relative path from the build\production\myproject folder back to my persistence.xml file like so:</p>
<p>eclipselink.persistencexml=../../../web/META-INF/persistence.xml</p>
<p>but that gave me the following error:</p>
<p>java.lang.IllegalArguementException: relativeName is invalid</p>
<p>Has anyone set this up with Eclipselink? BTW, I can generate them by hand on the command link with &#8220;javac -processor org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor &#8230;&#8221; so I know I have my options and classpath information correct and I am just not understanding the magic to make IDEA happy. Thanks,</p>
<p>-Noah</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blogs.jetbrains.com/idea/2009/11/userfriendly-annotation-processing-support-jpa-20-metamodel/#comment-121133</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 12 Dec 2009 16:48:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/idea/?p=2396#comment-121133</guid>
		<description>Does anybody know how to debug annotation processors in IDEA?</description>
		<content:encoded><![CDATA[<p>Does anybody know how to debug annotation processors in IDEA?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory Shrago</title>
		<link>http://blogs.jetbrains.com/idea/2009/11/userfriendly-annotation-processing-support-jpa-20-metamodel/#comment-120364</link>
		<dc:creator>Gregory Shrago</dc:creator>
		<pubDate>Mon, 30 Nov 2009 13:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/idea/?p=2396#comment-120364</guid>
		<description>The generated sources are indexed if the 'generated' directory is marked as a source folder in the corresponding module settings. Anyway Peter is right that currently IDEA does not do anything with the generated classes.</description>
		<content:encoded><![CDATA[<p>The generated sources are indexed if the &#8216;generated&#8217; directory is marked as a source folder in the corresponding module settings. Anyway Peter is right that currently IDEA does not do anything with the generated classes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timo Westkämper</title>
		<link>http://blogs.jetbrains.com/idea/2009/11/userfriendly-annotation-processing-support-jpa-20-metamodel/#comment-120192</link>
		<dc:creator>Timo Westkämper</dc:creator>
		<pubDate>Thu, 26 Nov 2009 12:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/idea/?p=2396#comment-120192</guid>
		<description>If your are unhappy with the JPA2 APT metamodel, you should given Querydsl a try. It provides a more compact, readable and typesafe metamodel :

http://source.mysema.com/display/querydsl/Querydsl</description>
		<content:encoded><![CDATA[<p>If your are unhappy with the JPA2 APT metamodel, you should given Querydsl a try. It provides a more compact, readable and typesafe metamodel :</p>
<p><a href="http://source.mysema.com/display/querydsl/Querydsl" rel="nofollow">http://source.mysema.com/display/querydsl/Querydsl</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blogs.jetbrains.com/idea/2009/11/userfriendly-annotation-processing-support-jpa-20-metamodel/#comment-120191</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Thu, 26 Nov 2009 12:47:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/idea/?p=2396#comment-120191</guid>
		<description>I really appreciate that feature. However unless the generated classes are recognized by the IDEA and the generated sources are indexed and included into the type hierarchy it's pretty useless :-(

Guess this will come in a later milestone of Maia :-)</description>
		<content:encoded><![CDATA[<p>I really appreciate that feature. However unless the generated classes are recognized by the IDEA and the generated sources are indexed and included into the type hierarchy it&#8217;s pretty useless <img src='http://blogs.jetbrains.com/idea/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>Guess this will come in a later milestone of Maia <img src='http://blogs.jetbrains.com/idea/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: B. K. Oxley (binkley)</title>
		<link>http://blogs.jetbrains.com/idea/2009/11/userfriendly-annotation-processing-support-jpa-20-metamodel/#comment-119776</link>
		<dc:creator>B. K. Oxley (binkley)</dc:creator>
		<pubDate>Thu, 19 Nov 2009 16:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.jetbrains.com/idea/?p=2396#comment-119776</guid>
		<description>I have the same question as David Vallner, re:

http://projectlombok.org/features/Data.html

I'd like to have IDEA recognize the generated classes, and no longer give me red squiggles for calling generated methods (getters/setters in this case).  Navigation to the generate class would be a bonus.</description>
		<content:encoded><![CDATA[<p>I have the same question as David Vallner, re:</p>
<p><a href="http://projectlombok.org/features/Data.html" rel="nofollow">http://projectlombok.org/features/Data.html</a></p>
<p>I&#8217;d like to have IDEA recognize the generated classes, and no longer give me red squiggles for calling generated methods (getters/setters in this case).  Navigation to the generate class would be a bonus.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
