留言板
Query - DB call from Hook
Hi,
Can we make any kind of DB call like JPA call, from liferay hook.
Is it possible, if yes, then can anyone please help me by giving some idea or reference.
thanks in advance ,
subhasis
Can we make any kind of DB call like JPA call, from liferay hook.
Is it possible, if yes, then can anyone please help me by giving some idea or reference.
thanks in advance ,
subhasis
Hooks run within Liferay's ROOT context. Usually it's easier to wrap db access in SB so you can just use the static XxxLocalServiceUtil class to get to it.
Its possible to access service util classes inside a hook. That means that we can make a DB call from a hook too.
Thanks & Regards
Hamidul Islam
Author
www.proliferay.com
Thanks & Regards
Hamidul Islam
Author
www.proliferay.com