问题是这样的
有两张表account,其中主键是accountId... customer表,主键是customerId,
另外建立一张引用的表 accountwithcustomer 其中只有两个属性列 accountId,customerId,是外键。
以这三张表netbeans生成实体bean accountEB , customerEB。现在想在accountEB的HOME借口中加入findByCustomerId方法。那么ejb-jar.xml怎么描述这个方法?
有两张表account,其中主键是accountId... customer表,主键是customerId,
另外建立一张引用的表 accountwithcustomer 其中只有两个属性列 accountId,customerId,是外键。
以这三张表netbeans生成实体bean accountEB , customerEB。现在想在accountEB的HOME借口中加入findByCustomerId方法。那么ejb-jar.xml怎么描述这个方法?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货