<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Mixing EJB3 discriminators and the JOINED strategy: Hibernate falls short</title>
	<link>http://www.plaintivemewling.com/articles/mixing-ejb3-discriminators-and-the-joined-strategy-hibernate-falls-short</link>
	<description>Incessant chatterings of a young fart</description>
	<pubDate>Sat, 31 Jul 2010 16:37:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: bk</title>
		<link>http://www.plaintivemewling.com/articles/mixing-ejb3-discriminators-and-the-joined-strategy-hibernate-falls-short#comment-522</link>
		<pubDate>Wed, 25 Mar 2009 17:13:43 +0000</pubDate>
		<guid>http://www.plaintivemewling.com/articles/mixing-ejb3-discriminators-and-the-joined-strategy-hibernate-falls-short#comment-522</guid>
					<description>I just ran into this problem. This is a big deal and it needs to be addressed by Hibernate. Do some searching and you're led to believe using Hibernate as a persistence provider in Glassfish is as easy a changing a couple lines in persistence.xml. Not so fast. Hibernate does not properly implement the spec as related to inheritance and use of @DiscriminatorColumn</description>
		<content:encoded><![CDATA[<p>I just ran into this problem. This is a big deal and it needs to be addressed by Hibernate. Do some searching and you&#8217;re led to believe using Hibernate as a persistence provider in Glassfish is as easy a changing a couple lines in persistence.xml. Not so fast. Hibernate does not properly implement the spec as related to inheritance and use of @DiscriminatorColumn
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: cvoronin</title>
		<link>http://www.plaintivemewling.com/articles/mixing-ejb3-discriminators-and-the-joined-strategy-hibernate-falls-short#comment-507</link>
		<pubDate>Wed, 05 Nov 2008 10:52:55 +0000</pubDate>
		<guid>http://www.plaintivemewling.com/articles/mixing-ejb3-discriminators-and-the-joined-strategy-hibernate-falls-short#comment-507</guid>
					<description>I've the same problem with strategy=JOINED and Discriminator Values.
It's very important to me to have not null value of discriminator field, I use it in group queries.

Now I have to do something like in base classes:

public MyBase () {
  // set the value of discriminator's field
  name = this.getClass().getSimpleName();
}

I think it is really ugly :(

Another option is to start to use Toplink...</description>
		<content:encoded><![CDATA[<p>I&#8217;ve the same problem with strategy=JOINED and Discriminator Values.<br />
It&#8217;s very important to me to have not null value of discriminator field, I use it in group queries.</p>
<p>Now I have to do something like in base classes:</p>
<p>public MyBase () {<br />
  // set the value of discriminator&#8217;s field<br />
  name = this.getClass().getSimpleName();<br />
}</p>
<p>I think it is really ugly <img src='http://www.plaintivemewling.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Another option is to start to use Toplink&#8230;
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
