奇怪!!!
如果我把EJBCreate的参数改成Integer就可以了!就是说把原来在Customer中的方法
public Integer EJBCreate(String homeaddress,Integer age,String companyaddress){
this.setName(...)
this.setAge(age);
this.setEmail(...)
改成
public Integer EJBCreate(Integer id){
this.setId(id);
'
就可以了,但是这样做就不能用Mysql主健自增的功能了,还有个疑问就是如果建立CMR,那麽其中一个表中的一个字段专门用来建立联系,他总是NULL?还是这个联系的Column根本就可以不存在?