public class BeanClass implements javax.ejb.EntityBean { public void ejbCreate () { //..
} public void ejbCreate(int a){ //..
}
//no matching ejbPostCreate() method //other methods that must implement
the interface
}
解决方案
对于每个 ejbCreate() 方法,始终实现匹配 ejbPostCreate() 方法。
public class BeanClass implements javax.ejb.EntityBean { public void ejbCreate () { //..
} public void ejbCreate(int a){ //..
} public void ejbPostCreate () { //..
}
public void ejbPostCreate (int a) { //..
}
//other methods that must implement the interface
}