在你的CMP中加以下method
public cmpremoteinterface findBystudyid(String student_id){
}
EJBQL:
select OBJECT(P)
from CMPname P
where P.student_id=?1
public cmpremoteinterface findBystudyid(String student_id){
}
EJBQL:
select OBJECT(P)
from CMPname P
where P.student_id=?1
基本上楼上没有错误,注意加的是find方法. ql 语句等号两边加空格