【发布时间】:2012-11-18 21:37:30
【问题描述】:
嘿,我已经和学生一起创建了自己的 service.xml。现在我想为学生添加我自己的 searchByName 方法。你能解释一下在 StudentLocalServiceImpl 中写什么吗?
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。
我需要另一种方法的帮助。
提前致谢。
【问题讨论】:
标签: liferay-6