<div dir="ltr">$B$R$,MM(B<br><br>conpota$B$G$9!#(B<br><br>Cubby$B$N(BAction$B$N%U%#!<%k%I$K(B@Rsource$B$G(BDao$B%/%i%9$rDj5A$7$^$7$?$i!"$&$^$/$$$-$^$7$?!*(B<br>$B$"$j$,$H$&$4$6$$$^$7$?!#(B<br><br><br><div class="gmail_quote">2008/08/07 10:38 Yasuo Higa <span dir="ltr"><<a href="mailto:higa@isid.co.jp">higa@isid.co.jp</a>></span>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">$B$R$,$G$9!#(B<br>
<div class="Ih2E3d">><br>
> conpota$B$H?=$7$^$9!#(B<br>
> $B2sEz$"$j$,$H$&$4$6$$$^$9!#(B<br>
><br>
> $B$^$@JY6/ITB-$G?=$7Lu$J$$$G$9!#(B<br>
> Kuina-Dao$B$N%F%9%H%/%i%9$r0J2<$N$h$&$K:n$C$F$_$^$7$?$i%F%9%H$O$&$^$/9T$C$?$N$G$9$,!"(B<br>
> public class EmpTest extends S2TestCase {<br>
><br>
> EmpDao empDao;<br>
><br>
> @Override<br>
> protected void setUp() throws Exception {<br>
> super.setUp();<br>
> include("app.dicon");<br>
> }<br>
> public void testFindTx() throws Exception {<br>
> Emp emp = empDao.find(1L);<br>
> assertEquals("SMITH", emp.getEmpName());<br>
> }<br>
> }<br>
> $B$3$N(BEmpDao$B$r%5!<%V%l%C%H!J<c$7$/$O(BAction$B!K$+$i;H$&$K$O$I$&$9$l$P$h$$$N$G$7$g$&$+!)(B<br>
><br>
</div>@Resource<br>
protected EmpDao empDao;<br>
$B$N$h$&$K(BAction$B$K%U%#!<%k%I$rDj5A$7$F$/$@$5$$!#(B<br>
$B%5!<%V%l%C%H$K$O!"(BDI$B$5$;$k$3$H$O$G$-$^$;$s!#(B<br>
<br>
$B$h$m$7$/$*4j$$$7$^$9!#(B<br>
<div><div></div><div class="Wj3C7c">><br>
><br>
> 2008/08/06 10:10 Yasuo Higa <<a href="mailto:higa@isid.co.jp">higa@isid.co.jp</a>>:<br>
><br>
> > $B$R$,$G$9!#(B<br>
> > ><br>
> > > conpota$B$H?=$7$^$9!#(B<br>
> > ><br>
> > > Eclipse3.3$B$G(BDolteng$B%W%m%8%'%/%H$r0J2<$N@_Dj$G:n$j!"(B<br>
> > > $B!&(BApplication Type: Web Application<br>
> > > $B!&(BPersistence: Kuina-Dao(Hibernate)<br>
> > > $B!&%W%l%<%s%F!<%7%g%s(B: $B$J$7(B<br>
> > > $B!&(BServer Management: WTP(Servlet 2.5)<br>
> > > $B$5$i$K!"(BCubby$B$rF~$l$F!"(B<br>
> > > $B%G!<%?%Y!<%9%S%e!<$+$i%(%s%F%#%F%#$H(BDao$B%/%i%9$r:n$j$^$7$?!#(B<br>
> > ><br>
> > > $B$?$a$7$K!"(BCubby$B$N(BAction$B%/%i%9$+$i(BXxxDaoImpl$B%/%i%9$r;H$*$&$H$7$^$7$?$,!"(B<br>
> > > EnitityManager$B$,(BDI$B$5$l$:!"$$$-$E$^$C$F$7$^$$$^$7$?!#(B<br>
> > > EntityManager$B$O$I$N$h$&$K;H$($P$h$$$N$G$7$g$&$+!)(B<br>
> > > XxxDaoImpl$B%/%i%9$K(BDI$B$9$k$N$G$O$J$$$N$G$7$g$&$+!)(B<br>
> > ><br>
> > $B$3$l$@$1$N>pJs$@$HNI$/$o$+$i$J$$$N$G$9$,!"(B<br>
> > @PersistenceContext<br>
> > protected EntityMananger entityManager;<br>
> > $B$N$h$&$K$7$F$$$^$9$+!#(B<br>
> ><br>
> > Kuina-Dao$B$r;H$&>l9g$O!"(BXxxDao$B$@$1$G$9$`$3$H$,$[$H$s$I$G(B<br>
> > $B$"$^$j(BEntityManager$B$rD>$K;H$&$3$H$O$"$^$j$J$$$O$:$G$9!#(B<br>
> > _______________________________________________<br>
> > Seasar-user mailing list<br>
> > <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
> > <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
> ><br>
><br>
><br>
><br>
> --<br>
> conpota <<a href="mailto:conpota@gmail.com">conpota@gmail.com</a>><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Seasar-user mailing list<br>
> <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
><br>
><br>
><br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>conpota <<a href="mailto:conpota@gmail.com">conpota@gmail.com</a>><br>
</div>