<?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: JPA Hibernate with Oracle on Eclipse</title>
	<atom:link href="http://www.deepakgaikwad.net/index.php/2009/04/02/jpa-hibernate-with-oracle-on-eclipse.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.deepakgaikwad.net/index.php/2009/04/02/jpa-hibernate-with-oracle-on-eclipse.html</link>
	<description>Travel Articles and Tech Notes</description>
	<lastBuildDate>Mon, 06 Feb 2012 07:09:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Hicham</title>
		<link>http://www.deepakgaikwad.net/index.php/2009/04/02/jpa-hibernate-with-oracle-on-eclipse.html/comment-page-1#comment-30379</link>
		<dc:creator>Hicham</dc:creator>
		<pubDate>Fri, 26 Aug 2011 23:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.deepakgaikwad.net/?p=588#comment-30379</guid>
		<description>Thanks a lot Buddy :)</description>
		<content:encoded><![CDATA[<p>Thanks a lot Buddy <img src='http://www.deepakgaikwad.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
</item>
	<item>
		<title>By: David</title>
		<link>http://www.deepakgaikwad.net/index.php/2009/04/02/jpa-hibernate-with-oracle-on-eclipse.html/comment-page-1#comment-10583</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 26 Aug 2010 18:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.deepakgaikwad.net/?p=588#comment-10583</guid>
		<description>Hi, I ran the example and noticed the customer_id was incremented by every 50 (e.g. 100, 150, 200, 250...). However, if I ran a sql insert statement directly using SQLDeveloper, then the customer_id was incremented by 1. Why?</description>
		<content:encoded><![CDATA[<p>Hi, I ran the example and noticed the customer_id was incremented by every 50 (e.g. 100, 150, 200, 250&#8230;). However, if I ran a sql insert statement directly using SQLDeveloper, then the customer_id was incremented by 1. Why?</p>
]]></content:encoded>
</item>
	<item>
		<title>By: Eduardo</title>
		<link>http://www.deepakgaikwad.net/index.php/2009/04/02/jpa-hibernate-with-oracle-on-eclipse.html/comment-page-1#comment-4537</link>
		<dc:creator>Eduardo</dc:creator>
		<pubDate>Wed, 17 Mar 2010 21:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.deepakgaikwad.net/?p=588#comment-4537</guid>
		<description>Hi, what about Booleans in Oracle, how to manage them ?</description>
		<content:encoded><![CDATA[<p>Hi, what about Booleans in Oracle, how to manage them ?</p>
]]></content:encoded>
</item>
	<item>
		<title>By: jcgarciam</title>
		<link>http://www.deepakgaikwad.net/index.php/2009/04/02/jpa-hibernate-with-oracle-on-eclipse.html/comment-page-1#comment-3338</link>
		<dc:creator>jcgarciam</dc:creator>
		<pubDate>Thu, 21 Jan 2010 16:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.deepakgaikwad.net/?p=588#comment-3338</guid>
		<description>There are some things i could note by reading the code quickly:

1) Using the customerId  is bad idea for HasCode and Equals, since that is dependent on the DB Sequence Itself.

Imagine an scenario where you want to store this Non Persisted object in a SET to collect them before saving into the DB (as OneTOMany Relation), it will throws NPE since the Id is not populated at that time.

In Hibernate Site they talk about that.

2) EntityManagerFactory emf =  
             Persistence.createEntityManagerFactory

Should be factor out into an its own initializer since this a very heavy operation and should be done only once.

I probably understand this could be just a quick POC, but it definitely needs to be re-worked.

Cheers!</description>
		<content:encoded><![CDATA[<p>There are some things i could note by reading the code quickly:</p>
<p>1) Using the customerId  is bad idea for HasCode and Equals, since that is dependent on the DB Sequence Itself.</p>
<p>Imagine an scenario where you want to store this Non Persisted object in a SET to collect them before saving into the DB (as OneTOMany Relation), it will throws NPE since the Id is not populated at that time.</p>
<p>In Hibernate Site they talk about that.</p>
<p>2) EntityManagerFactory emf =<br />
             Persistence.createEntityManagerFactory</p>
<p>Should be factor out into an its own initializer since this a very heavy operation and should be done only once.</p>
<p>I probably understand this could be just a quick POC, but it definitely needs to be re-worked.</p>
<p>Cheers!</p>
]]></content:encoded>
</item>
</channel>
</rss>
