在jb7中不知道,我自己倒是用ep手写过!

解决方案 »

  1.   

    据我所知,cmr只能在entity bean之间使用,主要用来把数据库中的表之间的关联映射到两个bean之间的关联上。
    在jb7中,只有你右键一个entity bean->添加relation就可以看到了。具体的还需要看jb的help。
      

  2.   

    为什么我用JB7建立关系后,编译老出现下面的错误
    "esite.ejbgrpx": ERROR: Error parsing 'ejb-jar.xml' line 402: The content of element type "relationship-role-source" is incomplete, it must match "(description?,ejb-name)".
    "esite.ejbgrpx": ERROR: ejbc found errors
      

  3.   

    CMR只能建在EntityBean上,在数据库表上表示的就是FK。