当前位置: 代码迷 >> Eclipse >> Myeclipse反向生成CMP实业Bean
  详细解决方案

Myeclipse反向生成CMP实业Bean

热度:83   发布时间:2016-04-23 02:00:01.0
Myeclipse反向生成CMP实体Bean

最终的目录结构:

数据库状态:

最后用一个web项目bmpTest测试:

bmp.jsp:

<%@ page contentType="text/html; charset=GBK"%> <%@ page import="com.bmp.*,         javax.naming.*,          java.util.Properties,          java.util.Date,         java.util.List,         java.util.Iterator,         java.text.SimpleDateFormat"%> <%     InitialContext ctx = new InitialContext();     try {            AccountFacadeRemote remote = (AccountFacadeRemote) ctx.lookup("AccountFacade/remote");            Account account=remote.findById("1");       out.println(account.getOwerName());    } catch (Exception e) {       out.println(e.getMessage());     } %> 

最后输出:

  相关解决方案