[Seasar-user:6923] [S2Dao] DaoとDaoManagerの関係について

[E-MAIL ADDRESS DELETED] [E-MAIL ADDRESS DELETED]
2007年 3月 28日 (水) 10:03:12 JST


$B$*@$OC$K$J$C$F$*$j$^$9!#Cf@>$H?=$7$^$9!#(B

S2Dao$B$H(BDaoManager$B$N4X78$K$D$$$F0J2<<ALd$G$9!#(B

$B-!(BS2Dao-CodeGen$B$[E-MAIL ADDRESS DELETED]@.$5$l$?(BDao$B%$%s%?%U%'!<%9$K$O(B
$B!!<!$N99?77O%a%=%C%I$,Dj5A$5$l$^$9!#(B
$B!!!!(Bpublic void insert([$B%F!<%V%kL>(B]Dto dto);
$B!!!!(Bpublic void update([$B%F!<%V%kL>(B]Dto dto);
$B!!!!(Bpublic void delete([$B%F!<%V%kL>(B]Dto dto);

$B-"0lJ}!"(BAbstractDao$B$r(Bextends$B$7!"<+:n%$%s%?%U%'!<%9$r(Bimplements$B$7$?<+:n(BDaoManager$B$O(B
$B!!0J2<$N%a%=%C%I$r;HMQ$9$k;v$G!">H2q7O(BSQL$B$K$D$$$F!"%P%$%s%IJQ?tIU(BSQL$B$N(BWhere$B6g0J9_$r(B
$B!!F0E*$KAH$_N)$F$k;v$,$G$-$^$9!#(B
$B!!!!(BgetEntityManager().find(String query, Object[] values)
$B!!!!(BgetEntityManager().findObject(String query, Object[] values)
$B!!!!(BgetEntityManager().findBean(String query, Object[] values)

$B$3$3$G<ALd$J$N$G$9$,!"(B
$B!!!!!&(BDao$B$N99?77O%a%=%C%I(B
$B!!!!!&(BDaoManager$B$N>H2q7O%a%=%C%I(B
$B$r#1$D$N%/%i%9$KE;$a$F;HMQ$9$k;v$O$G$-$J$$$G$7$g$&$+!)(B

S2Dao-CodeGen$B$[E-MAIL ADDRESS DELETED]@.$5$l$?(BDao$B%$%s%?%U%'!<%9$r-"$N!V<+:n%$%s%?%U%'!<%9!W$H$7$F(B
$B;HMQ$9$k$H!"-!$N99?77O%a%=%C%I#3$D$r<BAu$;$M$P$J$j$^$;$s$,!"(B
getEntityManager()$B$NLa$jCM(BEntityManager$B$K$O99?77O%a%=%C%I$OL5$$$h$&$G$9!#(B

$B$b$7$3$l$i$r#1$D$KE;$a$k;v$,$G$-$J$/$F$b(BDao$B$H(BDaoManager$B$rJLJ*$H$7$F(B
$B;H$$J,$1$l$PNI$$$@$1$G$9$N$G!"$3$N;v$GJLCJ:$$C$F$$$kLu$G$O$J$$$N$G$9$,!"(B
$BAGKQ$J5?Ld$H$7$F$U$H5$$K$J$C$?$N$G$9$,!#!#!#!)(B



Seasar-user メーリングリストの案内