志水です。
>一方で、Internal って付いているクラスは、おそらくDBFlute.NET側で保持しているクラスなので、それはそのまんま持ってこれるかもしれません。
>ただ、その Internal のクラスの中で、S2Dao.NET に依存している部分はあるかもしれません。。。
Internalの必要そうなところを生成してみたのですが、手に負えなそうもなく・・・orz
>アプリケーションでどのくらいの難度のSQLを発行するのか?次第ですが、
>ConditionBeanのフル機能じゃなく、ちょっと単純なSQLを自動で作るだけとかであれば、
>コピーせずに0から作っちゃったほうがいいかもですね。(それでも大変かもですけど(^^)
Dupperはカラム名「user_name 」➡Entityのプロパティ「UserName」に
自動でデータをセットしてくれるんですよね。
それもDBFluteみたいにSetupSelectしたときと同じように
多少の実行コーディングは必要でけど
Joinしたテーブルも含めてデータを
Entityにセットすることができるんですよ。
なので2WaySQLの生成は無理でも
せめて値バインド前のSQL生成までできたらと欲がでてしまいました(笑)
下記が実行して生成したものなのですが
下記の問題が解消されたらSQL生成部分も使えそうなんですが
どのへんで作っているのかお判りになりますか?
1.「dflocやdfrel_0はそのままテーブル名」にしたい
2.「as c0など別名への変換」「\n」が不要
3.「/*pmb.ConditionQuery.Id.Equal*/null」を「@id」にしたい
select
dfloc.id as c0, dfloc.user_name as c1,
dfloc.password_hash as c2, dfloc.session_id as c3, dfloc.role as c4,
dfloc.password_upddate as c5, dfloc.version_no as c6,
dfloc.register_user as c7, dfloc.register_datetime as c8,
dfloc.register_process as c9, dfloc.update_user as c10,
dfloc.update_datetime as c11, dfloc.update_process as c12\n ,
dfrel_0.role as c13,
dfrel_0.name as c14, dfrel_0.version_no as c15, dfrel_0.register_user as c16,
dfrel_0.register_datetime as c17, dfrel_0.register_process as c18, dfrel_0.update_user as c19,
dfrel_0.update_datetime as c20, dfrel_0.update_process as c21 \n
from m_user dfloc\n
left outer join m_role dfrel_0 on dfloc.role = dfrel_0.role \n where
dfloc.id = /*pmb.ConditionQuery.Id.Equal*/null
以上、宜しくお願い致します。
2020年9月1日火曜日 17:24:28 UTC+9 jflute: