Topic: 请教

  Print this page

1.请教 Copy to clipboard
Posted by: haibo
Posted on: 2004-07-03 10:33

在hibernate中用session.save()来存储一个对象时,在BO中用到:
public void add(Dog aDog){
......
session.save(aDog);
.....
}
public void add(Monkey aMonkey){
......
session.save(aMonkey);
.....
}
很相近, 怎么抽象?


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2018 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号
客服电话 0592-8750026    客服信箱 714923@qq.com    客服QQ 714923