<?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>Comments on: No Dialect mapping for JDBC type: -1</title>
	<atom:link href="http://www.javathinking.com/2008/04/no-dialect-mapping-for-jdbc-type-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.javathinking.com/2008/04/no-dialect-mapping-for-jdbc-type-1/</link>
	<description>Java and software development related thoughts</description>
	<lastBuildDate>Thu, 29 Dec 2011 20:59:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David</title>
		<link>http://www.javathinking.com/2008/04/no-dialect-mapping-for-jdbc-type-1/comment-page-1/#comment-528</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 16 Dec 2008 11:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.javathinking.com/?p=85#comment-528</guid>
		<description>Upgrade your MySQL version to 5.0.3 and change TEXT type to VARCHAR(N) N&gt;[0-65535].</description>
		<content:encoded><![CDATA[<p>Upgrade your MySQL version to 5.0.3 and change TEXT type to VARCHAR(N) N&gt;[0-65535].</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://www.javathinking.com/2008/04/no-dialect-mapping-for-jdbc-type-1/comment-page-1/#comment-368</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Tue, 22 Apr 2008 22:24:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.javathinking.com/?p=85#comment-368</guid>
		<description>Thanks Burt, I meant to add a note saying that I do have other tables with TEXT columns and they work fine when using straight GORM or criteria.

So how do you use addScalar from your domain class? Can you simply use the mapping property?

static mapping = {
      columns {
          postCode type:&#039;text&#039;
      }
   }

Note, I&#039;m working with Grails here, and not using custom hibernate mappings - just straight GORM.</description>
		<content:encoded><![CDATA[<p>Thanks Burt, I meant to add a note saying that I do have other tables with TEXT columns and they work fine when using straight GORM or criteria.</p>
<p>So how do you use addScalar from your domain class? Can you simply use the mapping property?</p>
<p>static mapping = {<br />
      columns {<br />
          postCode type:&#8217;text&#8217;<br />
      }<br />
   }</p>
<p>Note, I&#8217;m working with Grails here, and not using custom hibernate mappings &#8211; just straight GORM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Burt Beckwith</title>
		<link>http://www.javathinking.com/2008/04/no-dialect-mapping-for-jdbc-type-1/comment-page-1/#comment-367</link>
		<dc:creator>Burt Beckwith</dc:creator>
		<pubDate>Tue, 22 Apr 2008 19:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.javathinking.com/?p=85#comment-367</guid>
		<description>A coworker just hit this same problem the other day. The suggestion on the page you cited to use addScalar worked fine for him - it just tells Hibernate that the column is a String type. It&#039;s only a problem with SQL queries, and you don&#039;t show your SQL, but you can select individual columns using HQL (e.g. reporting queries) and I&#039;m pretty sure this isn&#039;t a problem with HQL queries.</description>
		<content:encoded><![CDATA[<p>A coworker just hit this same problem the other day. The suggestion on the page you cited to use addScalar worked fine for him &#8211; it just tells Hibernate that the column is a String type. It&#8217;s only a problem with SQL queries, and you don&#8217;t show your SQL, but you can select individual columns using HQL (e.g. reporting queries) and I&#8217;m pretty sure this isn&#8217;t a problem with HQL queries.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

