<?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: A ScalaQuery Update</title>
	<atom:link href="http://szeiger.de/blog/2009/09/27/a-scala-query-update/feed/" rel="self" type="application/rss+xml" />
	<link>http://szeiger.de/blog/2009/09/27/a-scala-query-update/</link>
	<description>Stefan Zeiger's Software Development Weblog</description>
	<lastBuildDate>Fri, 16 Dec 2011 10:09:44 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: philip andrew</title>
		<link>http://szeiger.de/blog/2009/09/27/a-scala-query-update/comment-page-1/#comment-75</link>
		<dc:creator>philip andrew</dc:creator>
		<pubDate>Fri, 23 Oct 2009 09:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/?p=35#comment-75</guid>
		<description>Just came across this via DZone http://www.sts.tu-harburg.de/people/mi.garcia/ScalaQL/</description>
		<content:encoded><![CDATA[<p>Just came across this via DZone <a href="http://www.sts.tu-harburg.de/people/mi.garcia/ScalaQL/" rel="nofollow">http://www.sts.tu-harburg.de/people/mi.garcia/ScalaQL/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Zeiger</title>
		<link>http://szeiger.de/blog/2009/09/27/a-scala-query-update/comment-page-1/#comment-74</link>
		<dc:creator>Stefan Zeiger</dc:creator>
		<pubDate>Wed, 21 Oct 2009 19:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/?p=35#comment-74</guid>
		<description>@JL Huynh: Agreed, there needs to be an option for specifying the sequence name. If it&#039;s missing, a name should be generated automatically from the table and column names.

@philip andrew: I read the lift tutorial and experimented with the code, but I haven&#039;t gotten around to building a real application with it. I&#039;d like to get started with that after getting ScalaQuery 1.0 out of the door, and try to build the database connectivity both with Lift&#039;s ORM and with ScalaQuery. What is your experience with this combination so far?</description>
		<content:encoded><![CDATA[<p>@JL Huynh: Agreed, there needs to be an option for specifying the sequence name. If it&#8217;s missing, a name should be generated automatically from the table and column names.</p>
<p>@philip andrew: I read the lift tutorial and experimented with the code, but I haven&#8217;t gotten around to building a real application with it. I&#8217;d like to get started with that after getting ScalaQuery 1.0 out of the door, and try to build the database connectivity both with Lift&#8217;s ORM and with ScalaQuery. What is your experience with this combination so far?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philip andrew</title>
		<link>http://szeiger.de/blog/2009/09/27/a-scala-query-update/comment-page-1/#comment-73</link>
		<dc:creator>philip andrew</dc:creator>
		<pubDate>Wed, 21 Oct 2009 07:39:52 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/?p=35#comment-73</guid>
		<description>Hi,

I use this for two projects now, one is a straight Scala project application the other is using Liftweb.
Liftweb http://liftweb.net/ has some database mapping classes some simular but not as good as this one database mapping features. Do you think that integration of this with liftweb would be useful?

Thanks, Philip</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I use this for two projects now, one is a straight Scala project application the other is using Liftweb.<br />
Liftweb <a href="http://liftweb.net/" rel="nofollow">http://liftweb.net/</a> has some database mapping classes some simular but not as good as this one database mapping features. Do you think that integration of this with liftweb would be useful?</p>
<p>Thanks, Philip</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JL Huynh</title>
		<link>http://szeiger.de/blog/2009/09/27/a-scala-query-update/comment-page-1/#comment-72</link>
		<dc:creator>JL Huynh</dc:creator>
		<pubDate>Sun, 18 Oct 2009 20:10:23 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/?p=35#comment-72</guid>
		<description>May be a new option O AutoIncSeq &quot;sequenceName&quot; would work well. I usually need to interact with existing tables  that already have particular sequence names assigned to them.</description>
		<content:encoded><![CDATA[<p>May be a new option O AutoIncSeq &#8220;sequenceName&#8221; would work well. I usually need to interact with existing tables  that already have particular sequence names assigned to them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Zeiger</title>
		<link>http://szeiger.de/blog/2009/09/27/a-scala-query-update/comment-page-1/#comment-71</link>
		<dc:creator>Stefan Zeiger</dc:creator>
		<pubDate>Sun, 18 Oct 2009 15:24:16 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/?p=35#comment-71</guid>
		<description>Ah, I didn&#039;t think of such cases with computed columns. I suppose they could naturally fall out of an implementation for INSERT...FROM statements which is planned for the future.

The special case of simulating an auto_increment column in Oracle should ideally be handled by ScalaQuery directly. It offers an AutoInc flag among the basic column options, so it should be supported for all drivers. We could automatically create a sequence (together with the table) and get a value from it when an INSERT is done without the AutoInc column or with a NULL value for it.</description>
		<content:encoded><![CDATA[<p>Ah, I didn&#8217;t think of such cases with computed columns. I suppose they could naturally fall out of an implementation for INSERT&#8230;FROM statements which is planned for the future.</p>
<p>The special case of simulating an auto_increment column in Oracle should ideally be handled by ScalaQuery directly. It offers an AutoInc flag among the basic column options, so it should be supported for all drivers. We could automatically create a sequence (together with the table) and get a value from it when an INSERT is done without the AutoInc column or with a NULL value for it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JL Huynh</title>
		<link>http://szeiger.de/blog/2009/09/27/a-scala-query-update/comment-page-1/#comment-70</link>
		<dc:creator>JL Huynh</dc:creator>
		<pubDate>Sun, 18 Oct 2009 14:16:09 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/?p=35#comment-70</guid>
		<description>Trying to insert rows into an oracle table using the syntax:
val ins1 = (Users.id ~ Users.first ~ Users.last).insert((userSequence.next, &quot;Homer&quot;, Some(&quot;Simpson&quot;))) 

Users.id is defined as: column[Int](&quot;userID&quot;, O PrimaryKey, O NotNull)
And userSequence as: val userSequence = Sequence[Int](&quot;user_seq&quot;) start 1 inc 1

The does not compile because userSequence.next is not an Int. 

How do I use the combinator syntax to get it to translate to:
insert into users (id, first, last) values (user_seq.nextval, &quot;Homer&quot;, &quot;Simpson&quot;);</description>
		<content:encoded><![CDATA[<p>Trying to insert rows into an oracle table using the syntax:<br />
val ins1 = (Users.id ~ Users.first ~ Users.last).insert((userSequence.next, &#8220;Homer&#8221;, Some(&#8221;Simpson&#8221;))) </p>
<p>Users.id is defined as: column[Int](&#8221;userID&#8221;, O PrimaryKey, O NotNull)<br />
And userSequence as: val userSequence = Sequence[Int](&#8221;user_seq&#8221;) start 1 inc 1</p>
<p>The does not compile because userSequence.next is not an Int. </p>
<p>How do I use the combinator syntax to get it to translate to:<br />
insert into users (id, first, last) values (user_seq.nextval, &#8220;Homer&#8221;, &#8220;Simpson&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JL Huynh</title>
		<link>http://szeiger.de/blog/2009/09/27/a-scala-query-update/comment-page-1/#comment-69</link>
		<dc:creator>JL Huynh</dc:creator>
		<pubDate>Sun, 18 Oct 2009 01:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/?p=35#comment-69</guid>
		<description>Thank you. Breaking out in individual statements did solve the problem. 

Batches inserts would be useful for the kinds of things I do.</description>
		<content:encoded><![CDATA[<p>Thank you. Breaking out in individual statements did solve the problem. </p>
<p>Batches inserts would be useful for the kinds of things I do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Zeiger</title>
		<link>http://szeiger.de/blog/2009/09/27/a-scala-query-update/comment-page-1/#comment-68</link>
		<dc:creator>Stefan Zeiger</dc:creator>
		<pubDate>Sat, 17 Oct 2009 10:07:16 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/?p=35#comment-68</guid>
		<description>@JL Huynh: Your comments got eaten by the spam filter. I&#039;ve restored them now.

I don&#039;t think Oracle likes multiple statements being concatenated to one statement &quot;s1; s2&quot; as in populateUsers. If you want a portable solution, you&#039;ll have to send the statements separately. In the future, ScalaQuery may support statement batches (if the JDBC driver does) to avoid the overhead of sending multiple requests in a portable way.

For an Oracle-only solution, &quot;BEGIN s1; s2; END&quot; should work IIRC.</description>
		<content:encoded><![CDATA[<p>@JL Huynh: Your comments got eaten by the spam filter. I&#8217;ve restored them now.</p>
<p>I don&#8217;t think Oracle likes multiple statements being concatenated to one statement &#8220;s1; s2&#8243; as in populateUsers. If you want a portable solution, you&#8217;ll have to send the statements separately. In the future, ScalaQuery may support statement batches (if the JDBC driver does) to avoid the overhead of sending multiple requests in a portable way.</p>
<p>For an Oracle-only solution, &#8220;BEGIN s1; s2; END&#8221; should work IIRC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JL Huynh</title>
		<link>http://szeiger.de/blog/2009/09/27/a-scala-query-update/comment-page-1/#comment-67</link>
		<dc:creator>JL Huynh</dc:creator>
		<pubDate>Sat, 17 Oct 2009 06:18:16 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/?p=35#comment-67</guid>
		<description>Guess it&#039;s not moderated. Reposting:

I&#039;m getting a &quot;ORA-00933: SQL command not properly ended&quot; when running the SimpleTest class against an oracle DB. The error occurs on the for(i &lt;- populateUsers) println(&quot;  &quot;+i) statement.

The USERS table is getting created, so I know I&#039;m getting a connection and at least the first statement works.

What is the best way to troubleshoot this?</description>
		<content:encoded><![CDATA[<p>Guess it&#8217;s not moderated. Reposting:</p>
<p>I&#8217;m getting a &#8220;ORA-00933: SQL command not properly ended&#8221; when running the SimpleTest class against an oracle DB. The error occurs on the for(i &lt;- populateUsers) println(&quot;  &quot;+i) statement.</p>
<p>The USERS table is getting created, so I know I&#039;m getting a connection and at least the first statement works.</p>
<p>What is the best way to troubleshoot this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JL Huynh</title>
		<link>http://szeiger.de/blog/2009/09/27/a-scala-query-update/comment-page-1/#comment-66</link>
		<dc:creator>JL Huynh</dc:creator>
		<pubDate>Sat, 17 Oct 2009 06:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/?p=35#comment-66</guid>
		<description>Are comments moderated? Just posted something and it did not show up...</description>
		<content:encoded><![CDATA[<p>Are comments moderated? Just posted something and it did not show up&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

