you know, the primary key of a ejb bean is only..
so, do you want to get different bean object, you should use find findBy...() method, such as findByTitle(), findByStudy() etc. afterwards, implement it in the
ejb bean class.
so, do you want to get different bean object, you should use find findBy...() method, such as findByTitle(), findByStudy() etc. afterwards, implement it in the
ejb bean class.
解决方案 »
- 求助,log4j仅输出控制台,不输出文件!
- urlrewrite与SSH整合 伪静态的问题
- SSH里update问题
- hibernate的hql如何根据时间查询出最近100个数据值呢
- 新手在学习spring hibernate整合时碰到问题!
- tomcat 5.0和jbuilder9 如何匹配?可以匹配吗?
- hibernate+SQLserver 的驱动问题 谢谢
- 软件项目外包
- 在线给分!谁有lomboz最新版本?
- 朋友,能给我一本J2EE的书吗?告诉我在哪儿能下载也可以,一定给分
- 哪位大哥给推荐一个武汉的单位
- [100分]jboss3.2的oracle817的oracle-xa-ds.xml(即xa ds)如何配置??
BDictHome bDictHome2=(BDictHome) ctx.lookup("NewAccountServer.BDictLocal") ;
BDictHome bDictHome3=(BDictHome) ctx.lookup("NewAccountServer.BDictLocal") ;
BDict oBJTitle= bDictHome1.findByPrimaryKey(iTitle) ;
BDict oBJThisLearn = bDictHome2.findByPrimaryKey(iThisLearn);
BDict oBJStudy = bDictHome3.findByPrimaryKey(iStudy) ;这样写,一定可以实现了!!!
attention it!