Manibhushan Kumar
Manibhushan Kumar

Reputation: 1

How to insert data in User table through own portlet liferay 7.4

How to insert data in User table through own portlet

How to insert data in user_ table in liferay 7.4 though own portlet

I have created a custom entity in service.xml and perform the add operation .data is inserted in custum userdefined table in service.xml.but requirement is that the user details is also inserted in User_ table of liferay.

Upvotes: 0

Views: 58

Answers (1)

Olaf Kock
Olaf Kock

Reputation: 48087

Do not think in terms of database entries: This is a recipe for disaster: User records need entries in other tables as well, and the only approved way to make sure everything exists is to use the API.

Luckily, UserLocalService.addUserWithWorkflow(...) does what you want to do.

Upvotes: 0

Related Questions