<?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>Namesにjoinクエリ用文字列 -&gt; Seasar2.4.30とS2JDBC-Gen 0.9.2で解決 へのコメント</title>
	<atom:link href="http://jfut.integ.jp/2008/10/08/s2jdbc-join-names/feed/" rel="self" type="application/rss+xml" />
	<link>http://jfut.integ.jp/2008/10/08/s2jdbc-join-names/</link>
	<description></description>
	<lastBuildDate>Sat, 27 Aug 2011 15:08:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>jfut より</title>
		<link>http://jfut.integ.jp/2008/10/08/s2jdbc-join-names/comment-page-1/#comment-211</link>
		<dc:creator>jfut</dc:creator>
		<pubDate>Sat, 04 Oct 2008 14:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://jfuttest1.integ.jp/2008/10/names%E3%81%ABjoin%E3%82%AF%E3%82%A8%E3%83%AA%E7%94%A8%E6%96%87%E5%AD%97%E5%88%97-seasar2-4-30%E3%81%A8s2jdbc-gen-0-9-2%E3%81%A7%E8%A7%A3%E6%B1%BA/#comment-211</guid>
		<description>
&gt; 次のバージョン（0.9.3）でOrganize Importsでstatic importの並び順を指定しなくても大丈夫にする（警告がでないように調整する）予定です。

ありがとうございます。S2JDBC-Genめちゃくちゃ便利です！


</description>
		<content:encoded><![CDATA[							<p>> 次のバージョン（0.9.3）でOrganize Importsでstatic importの並び順を指定しなくても大丈夫にする（警告がでないように調整する）予定です。</p>
							<p>ありがとうございます。S2JDBC-Genめちゃくちゃ便利です！</p>
]]></content:encoded>
	</item>
	<item>
		<title>taedium より</title>
		<link>http://jfut.integ.jp/2008/10/08/s2jdbc-join-names/comment-page-1/#comment-210</link>
		<dc:creator>taedium</dc:creator>
		<pubDate>Sat, 04 Oct 2008 13:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://jfuttest1.integ.jp/2008/10/names%E3%81%ABjoin%E3%82%AF%E3%82%A8%E3%83%AA%E7%94%A8%E6%96%87%E5%AD%97%E5%88%97-seasar2-4-30%E3%81%A8s2jdbc-gen-0-9-2%E3%81%A7%E8%A7%A3%E6%B1%BA/#comment-210</guid>
		<description>
次のバージョン（0.9.3）でOrganize Importsでstatic importの並び順を指定しなくても大丈夫にする（警告がでないように調整する）予定です。


</description>
		<content:encoded><![CDATA[							<p>次のバージョン（0.9.3）でOrganize Importsでstatic importの並び順を指定しなくても大丈夫にする（警告がでないように調整する）予定です。</p>
]]></content:encoded>
	</item>
	<item>
		<title>jfut より</title>
		<link>http://jfut.integ.jp/2008/10/08/s2jdbc-join-names/comment-page-1/#comment-209</link>
		<dc:creator>jfut</dc:creator>
		<pubDate>Fri, 03 Oct 2008 17:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://jfuttest1.integ.jp/2008/10/names%E3%81%ABjoin%E3%82%AF%E3%82%A8%E3%83%AA%E7%94%A8%E6%96%87%E5%AD%97%E5%88%97-seasar2-4-30%E3%81%A8s2jdbc-gen-0-9-2%E3%81%A7%E8%A7%A3%E6%B1%BA/#comment-209</guid>
		<description>
書いた直後に解決しました。。。Organize Importsで定義したソート順、orgとjpの両方をstaticでやっていませんでした。New Staticからorgとjpを追加して、
* org (static)
* jp (static)
* java (package)
* javax (package)
* org (package)
* com (package)
としたところ意図する順番になり、Warning出なくなりました。いろいろとアドバイスありがとうございました、無事解決です。


</description>
		<content:encoded><![CDATA[							<p>書いた直後に解決しました。。。Organize Importsで定義したソート順、orgとjpの両方をstaticでやっていませんでした。New Staticからorgとjpを追加して、<br />
							* org (static)<br />
							* jp (static)<br />
							* java (package)<br />
							* javax (package)<br />
							* org (package)<br />
							* com (package)<br />
							としたところ意図する順番になり、Warning出なくなりました。いろいろとアドバイスありがとうございました、無事解決です。</p>
]]></content:encoded>
	</item>
	<item>
		<title>jfut より</title>
		<link>http://jfut.integ.jp/2008/10/08/s2jdbc-join-names/comment-page-1/#comment-208</link>
		<dc:creator>jfut</dc:creator>
		<pubDate>Fri, 03 Oct 2008 16:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://jfuttest1.integ.jp/2008/10/names%E3%81%ABjoin%E3%82%AF%E3%82%A8%E3%83%AA%E7%94%A8%E6%96%87%E5%AD%97%E5%88%97-seasar2-4-30%E3%81%A8s2jdbc-gen-0-9-2%E3%81%A7%E8%A7%A3%E6%B1%BA/#comment-208</guid>
		<description>
&gt; でも，この順番を逆にすると警告が出るので，順番が影響してるかと思ったんですけどねぇ．

なるほど判りました。確かに順番逆にすると警告でなくなります。ただ、Organize Importsで定義したソート順は通常のimportには効くものの、static importのソート順では無視されているようです。

ためしに
org.seasar.extension.jdbc.where.EmployeeNames
のパッケージを
jp.example.extension.jdbc.where.EmployeeNames
に変えて、Organize Importsのソート順定義にjpを加えて状況確認しました。


</description>
		<content:encoded><![CDATA[							<p>> でも，この順番を逆にすると警告が出るので，順番が影響してるかと思ったんですけどねぇ．</p>
							<p>なるほど判りました。確かに順番逆にすると警告でなくなります。ただ、Organize Importsで定義したソート順は通常のimportには効くものの、static importのソート順では無視されているようです。</p>
							<p>ためしに<br />
							org.seasar.extension.jdbc.where.EmployeeNames<br />
							のパッケージを<br />
							jp.example.extension.jdbc.where.EmployeeNames<br />
							に変えて、Organize Importsのソート順定義にjpを加えて状況確認しました。</p>
]]></content:encoded>
	</item>
	<item>
		<title>koichik より</title>
		<link>http://jfut.integ.jp/2008/10/08/s2jdbc-join-names/comment-page-1/#comment-207</link>
		<dc:creator>koichik</dc:creator>
		<pubDate>Fri, 03 Oct 2008 16:00:22 +0000</pubDate>
		<guid isPermaLink="false">http://jfuttest1.integ.jp/2008/10/names%E3%81%ABjoin%E3%82%AF%E3%82%A8%E3%83%AA%E7%94%A8%E6%96%87%E5%AD%97%E5%88%97-seasar2-4-30%E3%81%A8s2jdbc-gen-0-9-2%E3%81%A7%E8%A7%A3%E6%B1%BA/#comment-207</guid>
		<description>
&gt; 警告消えませんでした

おかしいなぁ，s2-tiger の中にある OperationsTest は

import static org.seasar.extension.jdbc.operation.Operations.*;
import static org.seasar.extension.jdbc.where.EmployeeNames.*;

ってなってて警告出てないんですよ．でも，この順番を逆にすると警告が出るので，順番が影響してるかと思ったんですけどねぇ．
OperationsTest で使ってる EmployeeNames は S2JDBC-Gen で生成したものではないので，微妙に違っているのだろうか．．．


</description>
		<content:encoded><![CDATA[							<p>> 警告消えませんでした</p>
							<p>おかしいなぁ，s2-tiger の中にある OperationsTest は</p>
							<p>import static org.seasar.extension.jdbc.operation.Operations.*;<br />
							import static org.seasar.extension.jdbc.where.EmployeeNames.*;</p>
							<p>ってなってて警告出てないんですよ．でも，この順番を逆にすると警告が出るので，順番が影響してるかと思ったんですけどねぇ．<br />
							OperationsTest で使ってる EmployeeNames は S2JDBC-Gen で生成したものではないので，微妙に違っているのだろうか．．．</p>
]]></content:encoded>
	</item>
	<item>
		<title>jfut より</title>
		<link>http://jfut.integ.jp/2008/10/08/s2jdbc-join-names/comment-page-1/#comment-206</link>
		<dc:creator>jfut</dc:creator>
		<pubDate>Fri, 03 Oct 2008 14:40:09 +0000</pubDate>
		<guid isPermaLink="false">http://jfuttest1.integ.jp/2008/10/names%E3%81%ABjoin%E3%82%AF%E3%82%A8%E3%83%AA%E7%94%A8%E6%96%87%E5%AD%97%E5%88%97-seasar2-4-30%E3%81%A8s2jdbc-gen-0-9-2%E3%81%A7%E8%A7%A3%E6%B1%BA/#comment-206</guid>
		<description>
&gt; Preferences の Organize Imports で jp が org より後に来るようにすれば消えるんじゃないかなぁ (消えるのは static import じゃなくて警告でした)．

jpを追加してorgより後、前にしても警告消えませんでした。試しにorgを消した状態でもダメでした。新しいS2JDBCの使い方が気に入っているので、この部分だけWarning気にしないという勝手ルールでこのまま使いたいと思います。

&gt; 移行の注意に書くのを忘れてました．追記しました．

ありがとうございます。


</description>
		<content:encoded><![CDATA[							<p>> Preferences の Organize Imports で jp が org より後に来るようにすれば消えるんじゃないかなぁ (消えるのは static import じゃなくて警告でした)．</p>
							<p>jpを追加してorgより後、前にしても警告消えませんでした。試しにorgを消した状態でもダメでした。新しいS2JDBCの使い方が気に入っているので、この部分だけWarning気にしないという勝手ルールでこのまま使いたいと思います。</p>
							<p>> 移行の注意に書くのを忘れてました．追記しました．</p>
							<p>ありがとうございます。</p>
]]></content:encoded>
	</item>
	<item>
		<title>koichik より</title>
		<link>http://jfut.integ.jp/2008/10/08/s2jdbc-join-names/comment-page-1/#comment-205</link>
		<dc:creator>koichik</dc:creator>
		<pubDate>Fri, 03 Oct 2008 13:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://jfuttest1.integ.jp/2008/10/names%E3%81%ABjoin%E3%82%AF%E3%82%A8%E3%83%AA%E7%94%A8%E6%96%87%E5%AD%97%E5%88%97-seasar2-4-30%E3%81%A8s2jdbc-gen-0-9-2%E3%81%A7%E8%A7%A3%E6%B1%BA/#comment-205</guid>
		<description>
&gt; ちょうど作っているのがjp.〜なんですが、

ごめんなさい，org.seasar.extension よりも後だったら，ですね．
Preferences の Organize Imports で jp が org より後に来るようにすれば消えるんじゃないかなぁ (消えるのは static import じゃなくて警告でした)．

&gt; Vista環境でCarotDAV

ありがとうございます．試してみます．

&gt; select()

移行の注意に書くのを忘れてました．追記しました．


</description>
		<content:encoded><![CDATA[							<p>> ちょうど作っているのがjp.〜なんですが、</p>
							<p>ごめんなさい，org.seasar.extension よりも後だったら，ですね．<br />
							Preferences の Organize Imports で jp が org より後に来るようにすれば消えるんじゃないかなぁ (消えるのは static import じゃなくて警告でした)．</p>
							<p>> Vista環境でCarotDAV</p>
							<p>ありがとうございます．試してみます．</p>
							<p>> select()</p>
							<p>移行の注意に書くのを忘れてました．追記しました．</p>
]]></content:encoded>
	</item>
	<item>
		<title>jfut より</title>
		<link>http://jfut.integ.jp/2008/10/08/s2jdbc-join-names/comment-page-1/#comment-204</link>
		<dc:creator>jfut</dc:creator>
		<pubDate>Fri, 03 Oct 2008 12:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://jfuttest1.integ.jp/2008/10/names%E3%81%ABjoin%E3%82%AF%E3%82%A8%E3%83%AA%E7%94%A8%E6%96%87%E5%AD%97%E5%88%97-seasar2-4-30%E3%81%A8s2jdbc-gen-0-9-2%E3%81%A7%E8%A7%A3%E6%B1%BA/#comment-204</guid>
		<description>
&gt; koichikさん

&gt;&gt; アプリのルートパッケージの名前がアルファベット順で org.seasar.extension... より前だと生成されないんじゃないかと思います．jp.〜 とかなら大丈夫だった気が．

ちょうど作っているのがjp.〜なんですが、これでダメなようです。別の設定箇所何かないか探してみます。

&gt;&gt; っていうか，新しく生成された Service では XxxCondition を使わなくても Operations のメソッドが使えます．こっちの方がはまりにくくてよさげ．

こ、これはすごく良いですね。後で記事も直しておきます。ありがとうございます。

&gt;&gt; 関係ないけど Vista で WebDAV つながりません．URL が間違ってる言われます．．．

自分のVista環境もダメでした。。。VistaのWebDAVクライアントはWindows Updateでしょっちゅう壊れるので、お手数ですが別のWebDAVクライアントソフトウェアを使ってみてください。Vista環境でCarotDAVというソフトでSeasar.orgのリポジトリに繋がることを確認しました。


</description>
		<content:encoded><![CDATA[							<p>> koichikさん</p>
							<p>>> アプリのルートパッケージの名前がアルファベット順で org.seasar.extension&#8230; より前だと生成されないんじゃないかと思います．jp.〜 とかなら大丈夫だった気が．</p>
							<p>ちょうど作っているのがjp.〜なんですが、これでダメなようです。別の設定箇所何かないか探してみます。</p>
							<p>>> っていうか，新しく生成された Service では XxxCondition を使わなくても Operations のメソッドが使えます．こっちの方がはまりにくくてよさげ．</p>
							<p>こ、これはすごく良いですね。後で記事も直しておきます。ありがとうございます。</p>
							<p>>> 関係ないけど Vista で WebDAV つながりません．URL が間違ってる言われます．．．</p>
							<p>自分のVista環境もダメでした。。。VistaのWebDAVクライアントはWindows Updateでしょっちゅう壊れるので、お手数ですが別のWebDAVクライアントソフトウェアを使ってみてください。Vista環境でCarotDAVというソフトでSeasar.orgのリポジトリに繋がることを確認しました。</p>
]]></content:encoded>
	</item>
	<item>
		<title>koichik より</title>
		<link>http://jfut.integ.jp/2008/10/08/s2jdbc-join-names/comment-page-1/#comment-203</link>
		<dc:creator>koichik</dc:creator>
		<pubDate>Fri, 03 Oct 2008 12:00:09 +0000</pubDate>
		<guid isPermaLink="false">http://jfuttest1.integ.jp/2008/10/names%E3%81%ABjoin%E3%82%AF%E3%82%A8%E3%83%AA%E7%94%A8%E6%96%87%E5%AD%97%E5%88%97-seasar2-4-30%E3%81%A8s2jdbc-gen-0-9-2%E3%81%A7%E8%A7%A3%E6%B1%BA/#comment-203</guid>
		<description>
&gt; The import org.seasar.extension.jdbc.operation.Operations never used

Eclipse の問題です．
アプリのルートパッケージの名前がアルファベット順で org.seasar.extension... より前だと生成されないんじゃないかと思います．jp.〜 とかなら大丈夫だった気が．

&gt; andでつなぐケース

複数の Condition を並べることができます．and() は or() と組み合わせた場合のカッコの入れ子を制御するためのものです．

.where(
            new ThesisProfUserCondition().profUser().uid.eq(userId),
                new ThesisProfUserCondition().year().year.eq(year))

っていうか，新しく生成された Service では XxxCondition を使わなくても Operations のメソッドが使えます．こっちの方がはまりにくくてよさげ．

.where(new ThesisStudentUserCondition().studentUser().uid.eq(uid))

は

.where(eq(studentUser().uid(), id))

と書けます．

.where(
            new ThesisProfUserCondition().profUser().uid.eq(userId).and(
                new ThesisProfUserCondition().year().year.eq(year)))

は

.where(eq(profUser().uid(), userId), eq(year().year(), year)))

と書けます．たぶん．

関係ないけど Vista で WebDAV つながりません．URL が間違ってる言われます．．．


</description>
		<content:encoded><![CDATA[							<p>> The import org.seasar.extension.jdbc.operation.Operations never used</p>
							<p>Eclipse の問題です．<br />
							アプリのルートパッケージの名前がアルファベット順で org.seasar.extension&#8230; より前だと生成されないんじゃないかと思います．jp.〜 とかなら大丈夫だった気が．</p>
							<p>> andでつなぐケース</p>
							<p>複数の Condition を並べることができます．and() は or() と組み合わせた場合のカッコの入れ子を制御するためのものです．</p>
							<p>.where(<br />
							            new ThesisProfUserCondition().profUser().uid.eq(userId),<br />
							                new ThesisProfUserCondition().year().year.eq(year))</p>
							<p>っていうか，新しく生成された Service では XxxCondition を使わなくても Operations のメソッドが使えます．こっちの方がはまりにくくてよさげ．</p>
							<p>.where(new ThesisStudentUserCondition().studentUser().uid.eq(uid))</p>
							<p>は</p>
							<p>.where(eq(studentUser().uid(), id))</p>
							<p>と書けます．</p>
							<p>.where(<br />
							            new ThesisProfUserCondition().profUser().uid.eq(userId).and(<br />
							                new ThesisProfUserCondition().year().year.eq(year)))</p>
							<p>は</p>
							<p>.where(eq(profUser().uid(), userId), eq(year().year(), year)))</p>
							<p>と書けます．たぶん．</p>
							<p>関係ないけど Vista で WebDAV つながりません．URL が間違ってる言われます．．．</p>
]]></content:encoded>
	</item>
	<item>
		<title>jfut より</title>
		<link>http://jfut.integ.jp/2008/10/08/s2jdbc-join-names/comment-page-1/#comment-202</link>
		<dc:creator>jfut</dc:creator>
		<pubDate>Fri, 03 Oct 2008 11:09:25 +0000</pubDate>
		<guid isPermaLink="false">http://jfuttest1.integ.jp/2008/10/names%E3%81%ABjoin%E3%82%AF%E3%82%A8%E3%83%AA%E7%94%A8%E6%96%87%E5%AD%97%E5%88%97-seasar2-4-30%E3%81%A8s2jdbc-gen-0-9-2%E3%81%A7%E8%A7%A3%E6%B1%BA/#comment-202</guid>
		<description>
Number of static imports 2だとない状態からimportしてくれないみたいで余計ダメダメだったので1にしてWarning無視することにしました。。取り急ぎご報告までに。


</description>
		<content:encoded><![CDATA[							<p>Number of static imports 2だとない状態からimportしてくれないみたいで余計ダメダメだったので1にしてWarning無視することにしました。。取り急ぎご報告までに。</p>
]]></content:encoded>
	</item>
</channel>
</rss>

