<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for No Relation To...</title>
	
	<link>http://blog.emmanuelbernard.com</link>
	<description />
	<lastBuildDate>Wed, 30 Dec 2009 13:20:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/NoRelationToComments" /><feedburner:info uri="norelationtocomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on To copy a file in … by Shred</title>
		<link>http://feedproxy.google.com/~r/NoRelationToComments/~3/VT8ppEqQ3oU/</link>
		<dc:creator>Shred</dc:creator>
		<pubDate>Wed, 30 Dec 2009 13:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.emmanuelbernard.com/wordpress/2007/01/to-copy-a-file-in/#comment-125</guid>
		<description>The groovy example damages the copied file on machines with UTF-8 charset! Better use Streams instead of Writers.</description>
		<content:encoded><![CDATA[<p>The groovy example damages the copied file on machines with UTF-8 charset! Better use Streams instead of Writers.</p>
<img src="http://feeds.feedburner.com/~r/NoRelationToComments/~4/VT8ppEqQ3oU" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.emmanuelbernard.com/2007/01/to-copy-a-file-in/comment-page-1/#comment-125</feedburner:origLink></item>
	<item>
		<title>Comment on Hit the road Jack by Anonymous</title>
		<link>http://feedproxy.google.com/~r/NoRelationToComments/~3/qUPFAzrYdNY/</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 18 Nov 2009 13:53:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.emmanuelbernard.com/wordpress/2009/10/hit-the-road-jack/#comment-124</guid>
		<description>=&gt;In others words Cat and Dog inherit Pet. CatOwner and DogOwner inherit Owner. A Cat has a CatOwner. A Dog has a DogOwner. When fetching all Cat and Dog (All Pets), I want to inner join fetch CatOwner for Cat and DogOwner for Dog.&lt;br /&gt;&lt;br /&gt;=&gt; select p from Pet ...&lt;br /&gt;must return query like this : &lt;br /&gt;select ...............&lt;br /&gt;from Pet this_ &lt;br /&gt;inner join CatOwner catowner1_ on this_.OWNER_FK=catowner1_.KEY &lt;br /&gt;inner join DogOwner dogowner1_ on this_.OWNER_FK=dogowner1_.KEY &lt;br /&gt;&lt;br /&gt;I don't want to have something like this :&lt;br /&gt;select ...............&lt;br /&gt;from Pet this_ &lt;br /&gt;inner join (select ... DogOwner union CatOwner) owner_ on owner_.KEY = this_.OWNER_FK&lt;br /&gt;=&gt; It has very bad performance ! For each Pet record, Hibernate generates an SQL UNION between all Owner subclasses to select the right Owner. Suppose Owner is a big table per class inheritance tree...(with 100 000 rows in each table)</description>
		<content:encoded><![CDATA[<p>=&gt;In others words Cat and Dog inherit Pet. CatOwner and DogOwner inherit Owner. A Cat has a CatOwner. A Dog has a DogOwner. When fetching all Cat and Dog (All Pets), I want to inner join fetch CatOwner for Cat and DogOwner for Dog.</p>
<p>=&gt; select p from Pet &#8230;<br />must return query like this : <br />select &#8230;&#8230;&#8230;&#8230;&#8230;<br />from Pet this_ <br />inner join CatOwner catowner1_ on this_.OWNER_FK=catowner1_.KEY <br />inner join DogOwner dogowner1_ on this_.OWNER_FK=dogowner1_.KEY </p>
<p>I don&#39;t want to have something like this :<br />select &#8230;&#8230;&#8230;&#8230;&#8230;<br />from Pet this_ <br />inner join (select &#8230; DogOwner union CatOwner) owner_ on owner_.KEY = this_.OWNER_FK<br />=&gt; It has very bad performance ! For each Pet record, Hibernate generates an SQL UNION between all Owner subclasses to select the right Owner. Suppose Owner is a big table per class inheritance tree&#8230;(with 100 000 rows in each table)</p>
<img src="http://feeds.feedburner.com/~r/NoRelationToComments/~4/qUPFAzrYdNY" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.emmanuelbernard.com/2009/10/hit-the-road-jack/comment-page-1/#comment-124</feedburner:origLink></item>
	<item>
		<title>Comment on Hit the road Jack by Anonymous</title>
		<link>http://feedproxy.google.com/~r/NoRelationToComments/~3/nk3KEM0L5Tg/</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 12 Nov 2009 10:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.emmanuelbernard.com/wordpress/2009/10/hit-the-road-jack/#comment-123</guid>
		<description>"What's new in Java Persistence 2.0. I will spend a good chunk of it to explain the new type-safe Criteria API"&lt;br /&gt;&lt;br /&gt;=&gt; Will it be possible to manage the following mapping ?&lt;br /&gt;because if I try to query it :&lt;br /&gt;Criteria crit = super.getSession().createCriteria(TA.class);&lt;br /&gt;crit.createAlias("TE", "trk");&lt;br /&gt;crit.add(Restrictions.like("trk.id", "%"));&lt;br /&gt;&lt;br /&gt;I get :&lt;br /&gt;select ...............&lt;br /&gt;from TA this_ &lt;br /&gt;inner join TE1 trk1_ on this_.TE_ENTITY_FK=trk1_.TE_KEY &lt;br /&gt;inner join TE2 trk1_ on this_.TE_ENTITY_FK=trk1_.TE_KEY &lt;br /&gt;where trk1_.TE_KEY like ?&lt;br /&gt;&lt;br /&gt;ORA-00918: column ambiguously defined.&lt;br /&gt;&lt;br /&gt;Thank you ORM !&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;@Entity&lt;br /&gt;@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)&lt;br /&gt;public abstract class TE {&lt;br /&gt;   &lt;br /&gt;   @Id&lt;br /&gt;   @GenericGenerator(name = "idGenerator", strategy = "assigned")&lt;br /&gt;   @GeneratedValue(generator = "idGenerator")&lt;br /&gt;   @Column(name="TE_KEY")&lt;br /&gt;   private String id;&lt;br /&gt;   &lt;br /&gt;   @OneToMany&lt;br /&gt;   @JoinColumn(name="TA_KEY", referencedColumnName="TE_KEY", insertable=false, updatable=false)&lt;br /&gt;   private List&lt; TA &gt; taList;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;@Entity&lt;br /&gt;public class TE1 extends TE { &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;@Entity&lt;br /&gt;public class TE2 extends TE { &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;@Entity&lt;br /&gt;@Inheritance(strategy=InheritanceType.SINGLE_TABLE)&lt;br /&gt;@DiscriminatorColumn(name="ta_type")&lt;br /&gt;public abstract class TA {&lt;br /&gt;   &lt;br /&gt;   @Id&lt;br /&gt;   @GenericGenerator(name = "idGenerator", strategy = "assigned")&lt;br /&gt;   @GeneratedValue(generator = "idGenerator")&lt;br /&gt;   @Column(name="TA_KEY")&lt;br /&gt;   private String id;&lt;br /&gt;   &lt;br /&gt;   public abstract void setTE(TE TE);&lt;br /&gt;&lt;br /&gt;   public abstract TE getTE();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;@Entity&lt;br /&gt;@DiscriminatorValue("TE1")&lt;br /&gt;public class TA1 extends TA {&lt;br /&gt;   &lt;br /&gt;   @ManyToOne(targetEntity=TE1.class)&lt;br /&gt;   @JoinColumn(name="TE_ENTITY_FK")&lt;br /&gt;   private TE TE;&lt;br /&gt;&lt;br /&gt;   public TE getTE() {&lt;br /&gt;   return TE;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public void setTE(TE TE) {&lt;br /&gt;      this.TE = TE;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;@Entity&lt;br /&gt;@DiscriminatorValue("TE2")&lt;br /&gt;public class TA2 extends TA {&lt;br /&gt;   &lt;br /&gt;   @ManyToOne(targetEntity=TE2.class)&lt;br /&gt;   @JoinColumn(name="TE_ENTITY_FK")&lt;br /&gt;   private TE TE;&lt;br /&gt;&lt;br /&gt;   public TE getTE() {&lt;br /&gt;      return TE;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public void setTE(TE TE) {&lt;br /&gt;      this.TE = TE;&lt;br /&gt;   }&lt;br /&gt;   &lt;br /&gt;}&lt;br /&gt;&lt;/b&gt;</description>
		<content:encoded><![CDATA[<p>&quot;What&#39;s new in Java Persistence 2.0. I will spend a good chunk of it to explain the new type-safe Criteria API&quot;</p>
<p>=&gt; Will it be possible to manage the following mapping ?<br />because if I try to query it :<br />Criteria crit = super.getSession().createCriteria(TA.class);<br />crit.createAlias(&quot;TE&quot;, &quot;trk&quot;);<br />crit.add(Restrictions.like(&quot;trk.id&quot;, &quot;%&quot;));</p>
<p>I get :<br />select &#8230;&#8230;&#8230;&#8230;&#8230;<br />from TA this_ <br />inner join TE1 trk1_ on this_.TE_ENTITY_FK=trk1_.TE_KEY <br />inner join TE2 trk1_ on this_.TE_ENTITY_FK=trk1_.TE_KEY <br />where trk1_.TE_KEY like ?</p>
<p>ORA-00918: column ambiguously defined.</p>
<p>Thank you ORM !</p>
<p><b><br />@Entity<br />@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)<br />public abstract class TE {</p>
<p>   @Id<br />   @GenericGenerator(name = &quot;idGenerator&quot;, strategy = &quot;assigned&quot;)<br />   @GeneratedValue(generator = &quot;idGenerator&quot;)<br />   @Column(name=&quot;TE_KEY&quot;)<br />   private String id;</p>
<p>   @OneToMany<br />   @JoinColumn(name=&quot;TA_KEY&quot;, referencedColumnName=&quot;TE_KEY&quot;, insertable=false, updatable=false)<br />   private List&lt; TA &gt; taList;<br />}</p>
<p>@Entity<br />public class TE1 extends TE { <br />}</p>
<p>@Entity<br />public class TE2 extends TE { <br />}</p>
<p>@Entity<br />@Inheritance(strategy=InheritanceType.SINGLE_TABLE)<br />@DiscriminatorColumn(name=&quot;ta_type&quot;)<br />public abstract class TA {</p>
<p>   @Id<br />   @GenericGenerator(name = &quot;idGenerator&quot;, strategy = &quot;assigned&quot;)<br />   @GeneratedValue(generator = &quot;idGenerator&quot;)<br />   @Column(name=&quot;TA_KEY&quot;)<br />   private String id;</p>
<p>   public abstract void setTE(TE TE);</p>
<p>   public abstract TE getTE();<br />}</p>
<p>@Entity<br />@DiscriminatorValue(&quot;TE1&quot;)<br />public class TA1 extends TA {</p>
<p>   @ManyToOne(targetEntity=TE1.class)<br />   @JoinColumn(name=&quot;TE_ENTITY_FK&quot;)<br />   private TE TE;</p>
<p>   public TE getTE() {<br />   return TE;<br />   }</p>
<p>   public void setTE(TE TE) {<br />      this.TE = TE;<br />   }<br />}</p>
<p>@Entity<br />@DiscriminatorValue(&quot;TE2&quot;)<br />public class TA2 extends TA {</p>
<p>   @ManyToOne(targetEntity=TE2.class)<br />   @JoinColumn(name=&quot;TE_ENTITY_FK&quot;)<br />   private TE TE;</p>
<p>   public TE getTE() {<br />      return TE;<br />   }</p>
<p>   public void setTE(TE TE) {<br />      this.TE = TE;<br />   }</p>
<p>}<br /></b></p>
<img src="http://feeds.feedburner.com/~r/NoRelationToComments/~4/nk3KEM0L5Tg" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.emmanuelbernard.com/2009/10/hit-the-road-jack/comment-page-1/#comment-123</feedburner:origLink></item>
	<item>
		<title>Comment on Hit the road Jack by Emmanuel Bernard</title>
		<link>http://feedproxy.google.com/~r/NoRelationToComments/~3/hy5w_yebkBc/</link>
		<dc:creator>Emmanuel Bernard</dc:creator>
		<pubDate>Tue, 20 Oct 2009 13:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.emmanuelbernard.com/wordpress/2009/10/hit-the-road-jack/#comment-122</guid>
		<description>Hi Javed,&lt;br /&gt;Bean Validation has been sent to the JCP for final approval so is frozen.&lt;br /&gt;Hibernate Validator is also final. What feature are you talking about that were in HV and not in Bean Validation?</description>
		<content:encoded><![CDATA[<p>Hi Javed,<br />Bean Validation has been sent to the JCP for final approval so is frozen.<br />Hibernate Validator is also final. What feature are you talking about that were in HV and not in Bean Validation?</p>
<img src="http://feeds.feedburner.com/~r/NoRelationToComments/~4/hy5w_yebkBc" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.emmanuelbernard.com/2009/10/hit-the-road-jack/comment-page-1/#comment-122</feedburner:origLink></item>
	<item>
		<title>Comment on Hit the road Jack by javed</title>
		<link>http://feedproxy.google.com/~r/NoRelationToComments/~3/RuJDXWU1Kjc/</link>
		<dc:creator>javed</dc:creator>
		<pubDate>Mon, 19 Oct 2009 12:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.emmanuelbernard.com/wordpress/2009/10/hit-the-road-jack/#comment-121</guid>
		<description>Hi ,&lt;br /&gt;    in regards to bean validation framework JSR 303 and hibernate validator wanted to know what was the status of JSR 303 and whether any changes to hibernate validator in new release was going to be applied to JSR 303?&lt;br /&gt;&lt;br /&gt;thanks,&lt;br /&gt;  javed</description>
		<content:encoded><![CDATA[<p>Hi ,<br />    in regards to bean validation framework JSR 303 and hibernate validator wanted to know what was the status of JSR 303 and whether any changes to hibernate validator in new release was going to be applied to JSR 303?</p>
<p>thanks,<br />  javed</p>
<img src="http://feeds.feedburner.com/~r/NoRelationToComments/~4/RuJDXWU1Kjc" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.emmanuelbernard.com/2009/10/hit-the-road-jack/comment-page-1/#comment-121</feedburner:origLink></item>
	<item>
		<title>Comment on Hit the road Jack by Antonio Goncalves</title>
		<link>http://feedproxy.google.com/~r/NoRelationToComments/~3/8lkRzCcP2ME/</link>
		<dc:creator>Antonio Goncalves</dc:creator>
		<pubDate>Wed, 14 Oct 2009 00:46:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.emmanuelbernard.com/wordpress/2009/10/hit-the-road-jack/#comment-120</guid>
		<description>And you will be talking at the Paris JUG about Bean Validation on the 8th of december ;o)</description>
		<content:encoded><![CDATA[<p>And you will be talking at the Paris JUG about Bean Validation on the 8th of december ;o)</p>
<img src="http://feeds.feedburner.com/~r/NoRelationToComments/~4/8lkRzCcP2ME" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.emmanuelbernard.com/2009/10/hit-the-road-jack/comment-page-1/#comment-120</feedburner:origLink></item>
	<item>
		<title>Comment on Oracle is buying Sun: best quotes of the day by Martina</title>
		<link>http://feedproxy.google.com/~r/NoRelationToComments/~3/o6NOavga9BA/</link>
		<dc:creator>Martina</dc:creator>
		<pubDate>Fri, 25 Sep 2009 07:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.emmanuelbernard.com/wordpress/2009/04/oracle-is-buying-sun-best-quotes-of-the-day/#comment-119</guid>
		<description>Hi,&lt;br /&gt;   This is funny conversation.We will see some interesting changes in the next Java version under the order of Oracle.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.zoombits.de/kabel/" rel="nofollow"&gt;hdmi adapter&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi,<br />   This is funny conversation.We will see some interesting changes in the next Java version under the order of Oracle.</p>
<p><a href="http://www.zoombits.de/kabel/" rel="nofollow">hdmi adapter</a></p>
<img src="http://feeds.feedburner.com/~r/NoRelationToComments/~4/o6NOavga9BA" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.emmanuelbernard.com/2009/04/oracle-is-buying-sun-best-quotes-of-the-day/comment-page-1/#comment-119</feedburner:origLink></item>
	<item>
		<title>Comment on Having problems with Adium and Yahoo IM? by Martina</title>
		<link>http://feedproxy.google.com/~r/NoRelationToComments/~3/Kt_ggd-opHM/</link>
		<dc:creator>Martina</dc:creator>
		<pubDate>Fri, 25 Sep 2009 07:32:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.emmanuelbernard.com/wordpress/2009/06/having-problems-with-adium-and-yahoo-im/#comment-118</guid>
		<description>Hi,&lt;br /&gt;   The Adium is really nice messaging client.I want to know why IM's login protocol is changed.The Adium's new version is really great. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.zoombits.de/kabel/" rel="nofollow"&gt;hdmi adapter&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi,<br />   The Adium is really nice messaging client.I want to know why IM&#39;s login protocol is changed.The Adium&#39;s new version is really great. </p>
<p><a href="http://www.zoombits.de/kabel/" rel="nofollow">hdmi adapter</a></p>
<img src="http://feeds.feedburner.com/~r/NoRelationToComments/~4/Kt_ggd-opHM" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.emmanuelbernard.com/2009/06/having-problems-with-adium-and-yahoo-im/comment-page-1/#comment-118</feedburner:origLink></item>
	<item>
		<title>Comment on Lies, damned lies, and statistics: EE edition by Martina</title>
		<link>http://feedproxy.google.com/~r/NoRelationToComments/~3/yKI1y1Ob2SY/</link>
		<dc:creator>Martina</dc:creator>
		<pubDate>Fri, 25 Sep 2009 07:22:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.emmanuelbernard.com/wordpress/2009/07/lies-damned-lies-and-statistics-ee-edition/#comment-117</guid>
		<description>Hi,&lt;br /&gt;  I am surprised that they are giving some false stats to us.I like the GF for its good server features but they should be honest with stats.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.zoombits.de/kabel/" rel="nofollow"&gt;hdmi adapter&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi,<br />  I am surprised that they are giving some false stats to us.I like the GF for its good server features but they should be honest with stats.</p>
<p><a href="http://www.zoombits.de/kabel/" rel="nofollow">hdmi adapter</a></p>
<img src="http://feeds.feedburner.com/~r/NoRelationToComments/~4/yKI1y1Ob2SY" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.emmanuelbernard.com/2009/07/lies-damned-lies-and-statistics-ee-edition/comment-page-1/#comment-117</feedburner:origLink></item>
	<item>
		<title>Comment on Java generics end of mystery by Emmanuel Bernard</title>
		<link>http://feedproxy.google.com/~r/NoRelationToComments/~3/1DgDFqU2n8U/</link>
		<dc:creator>Emmanuel Bernard</dc:creator>
		<pubDate>Wed, 23 Sep 2009 16:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.emmanuelbernard.com/wordpress/2009/04/java-generics-end-of-mystery/#comment-116</guid>
		<description>Well actually yes that's the point.&lt;br /&gt;The ConstraintViolationException can contain ConstraintViolation from different roots (ie type T) so we ought to use Set&lt;ConstraintViolation&lt;?&gt;&gt;  in the set and thus force the copy.&lt;br /&gt;&lt;br /&gt;How would you design it otherwise?</description>
		<content:encoded><![CDATA[<p>Well actually yes that&#39;s the point.<br />The ConstraintViolationException can contain ConstraintViolation from different roots (ie type T) so we ought to use Set&lt;ConstraintViolation&lt;?&gt;&gt;  in the set and thus force the copy.</p>
<p>How would you design it otherwise?</p>
<img src="http://feeds.feedburner.com/~r/NoRelationToComments/~4/1DgDFqU2n8U" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://blog.emmanuelbernard.com/2009/04/java-generics-end-of-mystery/comment-page-1/#comment-116</feedburner:origLink></item>
</channel>
</rss>
