<?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>Jason B Herald &#187; Hibernate</title>
	<atom:link href="http://jasonbherald.com/category/hibernate/feed/" rel="self" type="application/rss+xml" />
	<link>http://jasonbherald.com</link>
	<description>x = sin x</description>
	<lastBuildDate>Wed, 18 Jan 2012 21:18:13 +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>Absolute Link</title>
		<link>http://jasonbherald.com/2008/06/03/absolute-link/</link>
		<comments>http://jasonbherald.com/2008/06/03/absolute-link/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 19:30:04 +0000</pubDate>
		<dc:creator>Jason Herald</dc:creator>
				<category><![CDATA[EJB]]></category>
		<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://jasonbherald.com/?p=44</guid>
		<description><![CDATA[This is a fantastic link for finding information about EJB and Hibernate Annotations. So thanks to the guys/gals that produced &#8230; <a href="http://jasonbherald.com/2008/06/03/absolute-link/" class="more-link">Learn more</a>]]></description>
			<content:encoded><![CDATA[<p>This is a fantastic link for finding information about EJB and Hibernate Annotations.  So thanks to the guys/gals that produced it:</p>
<p><a class="aligncenter" title="Link to Content" href="http://docs.jboss.org/ejb3/app-server/HibernateAnnotations/reference/en/html_single/index.html" target="_blank">Link to Content<br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jasonbherald.com/2008/06/03/absolute-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Common Hibernate Options (hibernate.cfg.xml)</title>
		<link>http://jasonbherald.com/2008/05/20/common-hibernate-options-hibernatecfgxml/</link>
		<comments>http://jasonbherald.com/2008/05/20/common-hibernate-options-hibernatecfgxml/#comments</comments>
		<pubDate>Wed, 21 May 2008 03:20:42 +0000</pubDate>
		<dc:creator>Jason Herald</dc:creator>
				<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://jasonbherald.com/?p=37</guid>
		<description><![CDATA[Below is a pretty standard configuration which appears to work quickly using an oracle database with a datasource defined in &#8230; <a href="http://jasonbherald.com/2008/05/20/common-hibernate-options-hibernatecfgxml/" class="more-link">Learn more</a>]]></description>
			<content:encoded><![CDATA[<p>Below is a pretty standard configuration which appears to work quickly using an oracle database with a datasource defined in an oracle application server.  I will be refining this over the next week as I performance tune the &#8220;massive app&#8221;.</p>
<blockquote><p>&lt;property name=&#8221;hibernate.dialect&#8221;&gt;org.hibernate.dialect.OracleDialect&lt;/property&gt;<br />
&lt;property name=&#8221;connection.datasource&#8221;&gt;jdbc/xxx&lt;/property&gt;<br />
&lt;property name=&#8221;current_session_context_class&#8221;&gt;thread&lt;/property&gt;<br />
&lt;property name=&#8221;hibernate.transaction.factory_class&#8221;&gt;org.hibernate.transaction.JDBCTransactionFactory&lt;/property&gt;<br />
&lt;property name=&#8221;cache.provider_class&#8221;&gt;org.hibernate.cache.NoCacheProvider&lt;/property&gt;<br />
&lt;property name=&#8221;show_sql&#8221;&gt;true&lt;/property&gt;<br />
&lt;property name=&#8221;hbm2ddl.auto&#8221;&gt;none&lt;/property&gt;<br />
&lt;property name=&#8221;connection.pool_size&#8221;&gt;5&lt;/property&gt;<br />
&lt;property name=&#8221;hibernate.max_fetch_depth&#8221;&gt;0&lt;/property&gt;<br />
&lt;property name=&#8221;hibernate.use_reflection_optimizer&#8221;&gt;true&lt;/property&gt;<br />
&lt;property name=&#8221;use_outer_join&#8221;&gt;false&lt;/property&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://jasonbherald.com/2008/05/20/common-hibernate-options-hibernatecfgxml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hql Basics (Parameters)</title>
		<link>http://jasonbherald.com/2008/05/16/hql-basics-parameters/</link>
		<comments>http://jasonbherald.com/2008/05/16/hql-basics-parameters/#comments</comments>
		<pubDate>Fri, 16 May 2008 13:17:43 +0000</pubDate>
		<dc:creator>Jason Herald</dc:creator>
				<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://jasonbherald.com/?p=35</guid>
		<description><![CDATA[In using Hibernate Query Language to include a Parameter of Type Long in a statement you would use the following &#8230; <a href="http://jasonbherald.com/2008/05/16/hql-basics-parameters/" class="more-link">Learn more</a>]]></description>
			<content:encoded><![CDATA[<p>In using Hibernate Query Language to include a Parameter of Type Long in a statement you would use the following code:</p>
<blockquote><p>Query q = session.createQuery(&#8220;from Class1 c where c.class2.class2_id = :class2_id&#8221;);<br />
q.setLong(&#8220;class2_id&#8221;, class2_id);<br />
q.list();&#8230;..</p></blockquote>
<p>One thing to Immediately notice (if you are familiar with Hibernate) is that I am calling class2_id through class2.  This is because in my little world class2 has a one to many relationship with Class1.  This means there is an object called class2 joining them together in the annotations.  However, I digress.  The real take away is that a parameter called :class2_id was established in the query and the referenced in the setLong statement to set the value.  After that calling the q.list function will return the values pulled back from the query. And TADA!</p>
]]></content:encoded>
			<wfw:commentRss>http://jasonbherald.com/2008/05/16/hql-basics-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

