Message Boards

Service Model without Persistence

Hairi Lani, modified 3 Years ago.

Service Model without Persistence

New Member Posts: 17 Join Date: 4/9/20 Recent Posts
Hello.
Any way that I can turn off the persistence in the service-builder?
My portlet only need the plain POJO that not connect to DB.
The POJO will use as data object that hold REST value.
I understand we can create it individually in portlet project.
But I like to follow Liferay standard that access repository DB/API using *Service class.

Thanks
/Hairi
thumbnail
Mohammed Yasin, modified 3 Years ago.

RE: Service Model without Persistence

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
Hi ,Please refer below link it might help you
https://liferay.dev/blogs/-/blogs/fake-servicebuilder-entities
Hairi Lani, modified 3 Years ago.

RE: Service Model without Persistence

New Member Posts: 17 Join Date: 4/9/20 Recent Posts
Thanks Yasin.