留言板
userPersistence cannot be resolved
Hi friends,
I created a hook for BlogsEntryLocalServiceWrapper and i tried to override updateStatus(). When I used
Regards,
Naresh
I created a hook for BlogsEntryLocalServiceWrapper and i tried to override updateStatus(). When I used
User user = userPersistence.findByPrimaryKey(userId);it shows
userPersistence cannot be resolved. can u please help me how to solve this?
Regards,
Naresh
David H Nebinger,修改在11 年前。
RE: userPersistence cannot be resolved
Liferay Legend 帖子: 14914 加入日期: 06-9-2 最近的帖子
You cannot rely on having direct access to the persistence layer.
Use UserPreferenceLocalServiceUtil instead.
Use UserPreferenceLocalServiceUtil instead.