<?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: Database Key Generation in Java Applications	</title>
	<atom:link href="https://www.selikoff.net/2008/09/03/database-key-generation-in-java-applications/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.selikoff.net/2008/09/03/database-key-generation-in-java-applications/</link>
	<description>Java/J2EE Software Development and Technology Discussion Blog</description>
	<lastBuildDate>Thu, 21 Apr 2011 21:40:10 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: JLB		</title>
		<link>https://www.selikoff.net/2008/09/03/database-key-generation-in-java-applications/comment-page-1/#comment-427</link>

		<dc:creator><![CDATA[JLB]]></dc:creator>
		<pubDate>Thu, 09 Oct 2008 00:26:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/blog/?p=380#comment-427</guid>

					<description><![CDATA[In Technique 2, shouldn&#039;t we use the Connection.prepareStatement(String, String[]) and specify the column names of the keys?  Oracle requires the column names (see http://forums.oracle.com/forums/thread.jspa?threadID=336591).  MySQL lets you use prepareStatement(String, Statement.RETURN_GENERATED_KEYS) as well.  But if you use the explicit column names, you should have code that works for at least Oracle and MySQL.]]></description>
			<content:encoded><![CDATA[<p>In Technique 2, shouldn&#8217;t we use the Connection.prepareStatement(String, String[]) and specify the column names of the keys?  Oracle requires the column names (see <a href="http://forums.oracle.com/forums/thread.jspa?threadID=336591" rel="nofollow ugc">http://forums.oracle.com/forums/thread.jspa?threadID=336591</a>).  MySQL lets you use prepareStatement(String, Statement.RETURN_GENERATED_KEYS) as well.  But if you use the explicit column names, you should have code that works for at least Oracle and MySQL.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: scott		</title>
		<link>https://www.selikoff.net/2008/09/03/database-key-generation-in-java-applications/comment-page-1/#comment-86</link>

		<dc:creator><![CDATA[scott]]></dc:creator>
		<pubDate>Thu, 04 Sep 2008 06:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/blog/?p=380#comment-86</guid>

					<description><![CDATA[Actually I&#039;ve changed databases on a number of projects.  It does happen fairly often.  Also, its a little bit like the chicken and the egg paradox.  If you use a ton of database specific features, then you&#039;re less likely to be able to change database systems.  But then if you consign yourself to never changing databases, you&#039;re more likely to fall into the trap of depending on database specific features.  In short, its rarely a good practice to depend entirely on database specific features in modern programming world.]]></description>
			<content:encoded><![CDATA[<p>Actually I&#8217;ve changed databases on a number of projects.  It does happen fairly often.  Also, its a little bit like the chicken and the egg paradox.  If you use a ton of database specific features, then you&#8217;re less likely to be able to change database systems.  But then if you consign yourself to never changing databases, you&#8217;re more likely to fall into the trap of depending on database specific features.  In short, its rarely a good practice to depend entirely on database specific features in modern programming world.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Avi Abrami		</title>
		<link>https://www.selikoff.net/2008/09/03/database-key-generation-in-java-applications/comment-page-1/#comment-84</link>

		<dc:creator><![CDATA[Avi Abrami]]></dc:creator>
		<pubDate>Thu, 04 Sep 2008 04:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.selikoff.net/blog/?p=380#comment-84</guid>

					<description><![CDATA[Scott,
Regarding technique 4: Database-specific techniques, how often does the database server get changed? May be a moot argument, no?

Cheers,
Avi.]]></description>
			<content:encoded><![CDATA[<p>Scott,<br />
Regarding technique 4: Database-specific techniques, how often does the database server get changed? May be a moot argument, no?</p>
<p>Cheers,<br />
Avi.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
