S2Dao

http://s2dao.seasar.org/ja/index.html

s2-dao-1.0.46.jar
s2-extension-2.3.22.jar
s2-framework-2.3.22.jar

DataSource? http://s2dao.seasar.org/ja/index.html

/s2dao-1.0.x/s2-dao-examples/src/main/java/examples/dao/EmployeeDaoClient.java
/s2dao-1.0.x/s2-dao-examples/src/main/resources/j2ee.dicon
/s2dao-1.0.x/s2-dao/src/test/resources/j2ee.dicon
Cannot convert value '0000-00-00'
/s2dao-1.0.x/s2-dao-examples/src/main/java/examples/dao/EmployeeDao.java
public String getEmployeeByDeptno_QUERY = "/*IF deptno != null*/deptno = /*deptno*/123\n"
			+ "-- ELSE 1=1\n" + "/*END*/";
public String getEmployeeByDeptno_QUERY = "/*IF deptno != null*/emp.deptno = /*deptno*/123\n"
			+ "-- ELSE 1=1\n" + "/*END*/";

EntityManager?


public static final int department_RELNO = 0; 

public static final String department_RELKEYS = "deptno:deptno"; 

public static final int department2_RELNO = 1;

public static final String department2_RELKEYS = "deptno2:deptno"; 

public static final int employee_RELNO = 2;
public static final String employee_RELKEYS = "empno:empno";

private Department department;
private Department department2;
private Employee employee;

public static final String TABLE = "emp";

TIPS

DTO (Entity)

plugins\jp.co.powerbeans.eclipse.plugin.powerdbj_1.0.0\template\java\TableModel.java

blanco

http://s2dao.seasar.org/ja/s2pager.html

EntityManager?


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS