2008-09-01から1ヶ月間の記事一覧

entityクラスでpublicフィールドは使えない

エンティティにpublicフィールドを使うとgetter,setterなくなりすっきりだが、 jspで ${f:out(member.id)} ${f:out(member.password)} ${f:out(member.name)} ${f:out(member.version)} member.idが見つからないと怒られる。 jsp2.0のEL式は、gettterがない…

S2AbstractService の jdbcManager がDIされない?

出羽さんの記事を参考にS2AbstractServiceを使ってみたが、 S2AbstractServiceのメソッドの /** * 自動検索を返します。 * * @return 自動検索 */ public AutoSelect select() { return jdbcManager.from(entityClass); } で jdbcManager が null のためNPE…

http://d.hatena.ne.jp/taedium/20050102 より

■[Groovy] GroovyのClosureでトランザクションCommentsAdd StarGroovyにはClosureを使ってJDBCを簡単に扱うためのクラス(groovy.sql.Sqlとgroovy.sql.DataSet)がありますが、トランザクションに関してはそれらしきものがなかったので考えてみました。Tx.java…

Groovy in Action の日本語版 Groovyイン・アクション が発売される。

http://www.amazon.co.jp/exec/obidos/ASIN/4839927278/ これで会社の同僚にGroovy を勧められる。うれしい。

[Seasar-user:15710] [S2JDBC]複数テーブルの結合

conpotaと申します。S2JDBCを試しています。 以下テーブルがあったとして、CREATE TABLE one( id SERIAL PRIMARY KEY, name VARCHAR(64) NOT NULL ); insert into one(name) values('one1'); insert into one(name) values('one2');CREATE TABLE two( id SER…