9
嘿,我已经与学生创建了自己的service.xml。现在o想为学生添加我自己的searchByName方法。你能解释我在StudentLocalServiceImpl中写什么吗?liferay-6.1 - 实现自己的服务
public class StudentLocalServiceImpl extends StudentLocalServiceBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
*/
public List<Student> getAll() throws SystemException {
return studentPersistence.findAll();
}
public Student getStudentByName(String name) {
return studentPersistence.
}
//我创建了一个方法getAll。
我需要另一个帮助。
在此先感谢。
非常感谢雷它帮助我很多.. :) –
你把它标记为回答? :) 谢谢 – Ray