<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Kommentare zu: Leveraging annotations in Java code</title>
	<atom:link href="http://www.olivergierke.de/wordpress/2009/10/leveraging-annotations-in-java-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.olivergierke.de/wordpress/2009/10/leveraging-annotations-in-java-code/</link>
	<description>www.olivergierke.de</description>
	<lastBuildDate>Thu, 22 Jul 2010 05:57:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Von: Adam Bien</title>
		<link>http://www.olivergierke.de/wordpress/2009/10/leveraging-annotations-in-java-code/comment-page-1/#comment-662</link>
		<dc:creator>Adam Bien</dc:creator>
		<pubDate>Sun, 04 Oct 2009 18:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.olivergierke.de/wordpress/?p=366#comment-662</guid>
		<description>Hi Oliver,

nice post. Some remarks:
1. @Stateless means &quot;Stateless&quot;. With that you get some conventions like transactionality.
2. In EJB 3 you can use @TransactionAttribute to set up transactions. This is not always needed - because of 1.
I agree you entirely in theory. In practice I&#039;m bit more pragmatic and don&#039;t even try to reuse domain classes across projects. Then JSR-303 is just perfect.  Keith Donald is right with: &quot;... many cases other colleagues will not / should not use my code outside of the bounded context I use...&quot;

thanks for mentioning my posts / tweets. And:  don&#039;t take my tweets too seriously - its only 140 characters.....:-)

adam</description>
		<content:encoded><![CDATA[<p>Hi Oliver,</p>
<p>nice post. Some remarks:<br />
1. @Stateless means &#8220;Stateless&#8221;. With that you get some conventions like transactionality.<br />
2. In EJB 3 you can use @TransactionAttribute to set up transactions. This is not always needed &#8211; because of 1.<br />
I agree you entirely in theory. In practice I&#8217;m bit more pragmatic and don&#8217;t even try to reuse domain classes across projects. Then JSR-303 is just perfect.  Keith Donald is right with: &#8220;&#8230; many cases other colleagues will not / should not use my code outside of the bounded context I use&#8230;&#8221;</p>
<p>thanks for mentioning my posts / tweets. And:  don&#8217;t take my tweets too seriously &#8211; its only 140 characters&#8230;..:-)</p>
<p>adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: david</title>
		<link>http://www.olivergierke.de/wordpress/2009/10/leveraging-annotations-in-java-code/comment-page-1/#comment-661</link>
		<dc:creator>david</dc:creator>
		<pubDate>Sun, 04 Oct 2009 07:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.olivergierke.de/wordpress/?p=366#comment-661</guid>
		<description>I totally agree that the documentation of JSR 303 is a problem. You know I am a fan of Javadocs[1], so it&#039;s great that somone thinks alike. IMHO in your Person example the @NotNull annotated field should be replaced by a constructor argument [2]. Everything that must be there for the object to do its work, pass it in by constructor. 

On the explicit part: I can only agree with you! The more code you save writing @Stateless - the more time it might take to understand the code! The value of Java is that it&#039;s code can be quite easy to understand. The more magic that happens under the hood - the harder it might be. [3] 

[1] http://dlinsin.blogspot.com/2008/06/does-your-api-docs-leave-users-in-dark.html
[2] http://dlinsin.blogspot.com/2009/03/final-or-not-final.html
[3] http://dlinsin.blogspot.com/2007/12/reading-code-or-writing-code.html</description>
		<content:encoded><![CDATA[<p>I totally agree that the documentation of JSR 303 is a problem. You know I am a fan of Javadocs[1], so it&#8217;s great that somone thinks alike. IMHO in your Person example the @NotNull annotated field should be replaced by a constructor argument [2]. Everything that must be there for the object to do its work, pass it in by constructor. </p>
<p>On the explicit part: I can only agree with you! The more code you save writing @Stateless &#8211; the more time it might take to understand the code! The value of Java is that it&#8217;s code can be quite easy to understand. The more magic that happens under the hood &#8211; the harder it might be. [3] </p>
<p>[1] <a href="http://dlinsin.blogspot.com/2008/06/does-your-api-docs-leave-users-in-dark.html" rel="nofollow"></a><a href='http://dlinsin.blogspot.com/2008/06/does-your-api-docs-leave-users-in-dark.html'>http://dlinsin.blogspot.com/2008/06/does-your-api-docs-leave-users-in-dark.html</a><br />
[2] <a href="http://dlinsin.blogspot.com/2009/03/final-or-not-final.html" rel="nofollow"></a><a href='http://dlinsin.blogspot.com/2009/03/final-or-not-final.html'>http://dlinsin.blogspot.com/2009/03/final-or-not-final.html</a><br />
[3] <a href="http://dlinsin.blogspot.com/2007/12/reading-code-or-writing-code.html" rel="nofollow"></a><a href='http://dlinsin.blogspot.com/2007/12/reading-code-or-writing-code.html'>http://dlinsin.blogspot.com/2007/12/reading-code-or-writing-code.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Oliver Gierke</title>
		<link>http://www.olivergierke.de/wordpress/2009/10/leveraging-annotations-in-java-code/comment-page-1/#comment-660</link>
		<dc:creator>Oliver Gierke</dc:creator>
		<pubDate>Sat, 03 Oct 2009 17:33:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.olivergierke.de/wordpress/?p=366#comment-660</guid>
		<description>Hey Keith,

this is a pretty valid approach and I didn&#039;t want to doom the way validation is applied in general. Neither is it my goal to blame Spring framework to implement JSR-303 integration. In fact I really like the easy approachability of how you integrated executing validation into MVC. I just thought I needed to express my concerns as JSR-303 is a very general JSR and thus probably too easily applied. Furthermore I could not find anything one web casting a more critical light on the consequences. 

Anyway, thanks for the comment.
Ollie</description>
		<content:encoded><![CDATA[<p>Hey Keith,</p>
<p>this is a pretty valid approach and I didn&#8217;t want to doom the way validation is applied in general. Neither is it my goal to blame Spring framework to implement JSR-303 integration. In fact I really like the easy approachability of how you integrated executing validation into MVC. I just thought I needed to express my concerns as JSR-303 is a very general JSR and thus probably too easily applied. Furthermore I could not find anything one web casting a more critical light on the consequences. </p>
<p>Anyway, thanks for the comment.<br />
Ollie</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Keith Donald</title>
		<link>http://www.olivergierke.de/wordpress/2009/10/leveraging-annotations-in-java-code/comment-page-1/#comment-659</link>
		<dc:creator>Keith Donald</dc:creator>
		<pubDate>Sat, 03 Oct 2009 16:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.olivergierke.de/wordpress/?p=366#comment-659</guid>
		<description>Hey Oliver,
My point is in many cases other colleagues will not / should not use my code outside of the bounded context I use it in.  And in the context of a webapp where I&#039;m defining a model that backs a HTML form, I&#039;m comfortable also defining constraint annotations enforced by the framework.

Keith</description>
		<content:encoded><![CDATA[<p>Hey Oliver,<br />
My point is in many cases other colleagues will not / should not use my code outside of the bounded context I use it in.  And in the context of a webapp where I&#8217;m defining a model that backs a HTML form, I&#8217;m comfortable also defining constraint annotations enforced by the framework.</p>
<p>Keith</p>
]]></content:encoded>
	</item>
</channel>
</rss>
