2005-01-01から1年間の記事一覧

■

localのoracleに接続するdatabase.ymlの記述 development: adapter: oci host: orcl username: hello password: hello #database: orcl # Connect on a TCP socket. If omitted, the adapter will connect on the # domain socket given by socket instead. …

■

既存DBがrailsのconventionと違う時の対処方法 http://wiki.rubyonrails.com/rails/pages/HowToUseLegacySchemas

■

logは、アプリのルートフォルダーのlogフォルダーにある

■

oracle driver のインストールhttp://rubyforge.org/projects/ruby-oci8/ からインストーラーを ダウンロードし、実行する ruby ./ruby-oci8-0.1.13-mswin.rb

■

UpdateByMinite.groovy import groovy.sql.Sql def sql = Sql.newInstance("jdbc:oracle:thin:@localhost:1521:orcl", "hello", "hello", "oracle.jdbc.driver.OracleDriver") def update() { try { sql.executeUpdate("update dept set dname = 'world' whe…

■

Somewhere over the rainbow- way up high in the land that I heard of once Once in a lullabySomewhere over the rainbow- skies are blue and the dreams that you dare to dream really do come trueSomeday I'll wish upon a star and wake up where t…

の勉強

Groovy : Closure と Method の使い方1 /* * Groovy : Closure と Method の使い方1 * */ add = { p1, p2 -> println("run add clouser : " + (p1 * p2)) } // これはClosuer add(1, 2) // run Closure def addMethod(p1, p2) { println("run addMethod : …

の勉強

import groovy.sql.Sqldef sql = Sql.newInstance("jdbc:oracle:thin:@localhost:1521:orcl", "hello", "hello", "oracle.jdbc.driver.OracleDriver")def printAll(sql) { sql.eachRow("select * from dept") { println it.deptno + " " + it.dname + " " + …

の勉強

EmployeeLogicImplにsetDepartmentDtoDaoを入れてなかったのが、 nullpoの原因だった。DIはこれを目印にしているのね。package myweb.logic;import java.util.List;import myweb.dao.DepartmentDtoDao;public class EmployeeLogicImpl implements EmployeeLo…

の勉強

public class EmployeeSearchInitActionImpl implements EmployeeSearchInitAction { private EmployeeLogic employeeLogic; private List departmentDtoList; public void setEmployeeLogic(EmployeeLogic employeeLogic) { this.employeeLogic = employeeL…

の勉強

s2jsf-blankで daoのテストが動かなかった。 簡単なテストも動かない。 エラーメッセージはjunitのクラスがロードできない旨。同じテストクラスを s2jsf-exampleにコピーすると動く。junitのjarがなかった。追加したけど変わらず。 s2jsf-blankのプロジェク…

の勉強

s2jsf-exampleを写経しているとdaoのところでひっかかったので、 s2daoを復習する。Entityのdeptnoはint。 DaoではIntegerにしている。 Daoではprimitiveは使わないでラッパーを使うのが定石なのか。public String getDname_ARGS = "depno";は"deptno"だよな…

■

管理コンソールで管理対象サーバーを起動すると マスターのロード処理のログが/opt/bea_814/user_projects/domains/marui_internet_develop_domain/ NodeManagerClientLogs/marui_internet_develop_domain_ManagedServer_sunblade2の 下のログファイルに書か…

のフォントを大きくする

ツール->ページオプション->フォントの設定

の勉強

DepartmentDtoDaoを作る前にtestクラスを作るpackage myweb.dao;import junit.textui.TestRunner; import org.seasar.dao.unit.S2DaoTestCase;import myweb.dto.DepartmentDto;/** * * @author masaki-sakurai * */ public class DepartmentDtoDaoTest exten…

■

st1で連結テストするのにz社からweblogicのログを見たいと要望あり。 つなげる訳にもいかないな。 goさんにrsyncでバケツリレーしてもらおう。 st1-->管理端末-->sunblade2 -

の勉強

s2jsf-blankからexampleを見ながら作成していく。 ・employeeSearch.htmlをコピーしてhtml部分だけにする。 ・deptのlistboxを実装する employee.diconに記述するactionInterceptorChainてなんだろう。 →allaop.diconに定義してあった。