<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Mohanjith&#039;s Blog &#187; Hibernate</title> <atom:link href="http://mohanjith.net/blog/topics/hibernate/feed" rel="self" type="application/rss+xml" /><link>http://mohanjith.net/blog</link> <description>MOHA blogging news and thoughts...</description> <lastBuildDate>Wed, 14 Dec 2011 14:18:18 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>CAS JDBC Service registry trouble</title><link>http://mohanjith.net/blog/2008/02/cas-jdbc-service-registry-trouble.html</link> <comments>http://mohanjith.net/blog/2008/02/cas-jdbc-service-registry-trouble.html#comments</comments> <pubDate>Fri, 22 Feb 2008 21:32:00 +0000</pubDate> <dc:creator>S H Mohanjith</dc:creator> <category><![CDATA[CAS]]></category> <category><![CDATA[Hibernate]]></category> <category><![CDATA[JA-SIG]]></category> <category><![CDATA[Spring]]></category><guid
isPermaLink="false">http://mohanjith.net/wordpress/?p=46</guid> <description><![CDATA[TweetI had a interesting time trying to figure out why the JA-SIG CAS service registry status was being reset when ever I restarted CAS. After much frustration I figured out the problem was in the schema that hibernate has automatically created. I&#8217;ll explain my setup, I was using MySQL for storing the service registry data [...]]]></description> <content:encoded><![CDATA[<p><span
style="float: right; margin: 5px 0px 0px 5px;" ><a
class="twitter-share-button"  data-via="mohanjith" data-count="vertical" data-related="" data-lang="en" data-url="http://mohanjith.net/blog/2008/02/cas-jdbc-service-registry-trouble.html" data-text="CAS JDBC Service registry trouble" href="http://twitter.com/share?via=mohanjith&#038;count=vertical&#038;related=&#038;lang=en&#038;url=http%3A%2F%2Fmohanjith.net%2Fblog%2F2008%2F02%2Fcas-jdbc-service-registry-trouble.html&#038;text=CAS%20JDBC%20Service%20registry%20trouble" >Tweet</a></span>I had a interesting time trying to figure out why the <a
href="http://www.ja-sig.org/products/cas/">JA-SIG CAS</a> service registry status was being reset when ever I restarted CAS. After much frustration I figured out the problem was in the schema that hibernate has automatically created.</p><p>I&#8217;ll explain my setup, I was using MySQL for storing the service registry data via <a
href="http://www.springframework.org/">Spring</a> entity manager and <a
href="http://www.hibernate.org/">Hibernate</a>.</p><p>Hibernate was creating <code>BIT(1)</code> for boolean atributes instead of <code>TINYINT(1)</code>. Because of this MySQL was not returning anything meaningful for the status. I have now changed the schema, and removed/commented the propery <code>hibernate.hbm2ddl.auto</code> in the enitity manager bean. It seem to work perfectly.</p><p>Hope someone in a similar situation will find this information useful.i</p><div
id="fb-like" style=""><iframe
src="http://www.facebook.com/plugins/like.php?href=http://mohanjith.net/blog/2008/02/cas-jdbc-service-registry-trouble.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:30px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://mohanjith.net/blog/2008/02/cas-jdbc-service-registry-trouble.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 8/19 queries in 0.036 seconds using memcached
Object Caching 0/0 objects using memcached
Content Delivery Network via cdn.mohanjith.net

Served from: mohanjith.net @ 2012-02-11 18:17:24 -->
