Forums de discussion

Service Builder - How to instantiate the entity/model?

LR BEGINNER, modifié il y a 7 années.

Service Builder - How to instantiate the entity/model?

New Member Publications: 24 Date d'inscription: 21/07/16 Publications récentes
Hi All,

I'm new to liferay and currently exploring on the service builder. Can anyone advise the proper way to instantiate the entity after the service builder generated all the classes? For example, my entity class is Guestbook, but when i instantiate the class, should i use Guestbook gb = new GuestbookImpl();

Any help would be great. Thanks in advance..
thumbnail
David H Nebinger, modifié il y a 7 années.

RE: Service Builder - How to instantiate the entity/model?

Liferay Legend Publications: 14917 Date d'inscription: 02/09/06 Publications récentes
No, you use GuestbookLocalService's createGuestbook() method.







Come meet me at the LSNA!
LR BEGINNER, modifié il y a 7 années.

RE: Service Builder - How to instantiate the entity/model?

New Member Publications: 24 Date d'inscription: 21/07/16 Publications récentes
Thanks David