Hi, I'm Ricardo from Spain.
I'm trying to use the code generated by xmlportletfactory to insert values into the tables in a migration process.
Im using this code with the *LocalServiceUtil generated by the xmlportletfactory:
1
2Translations translations = TranslationsLocalServiceUtil.createTranslations(idTranslation);
3
4translations.setCompanyId(Long.parseLong(companyId));
5translations.setGroupId(Long.parseLong(groupId));
6translations.setUserId(Long.parseLong(userId));
7...
8translations.setLogical_delete(logicalDelete);
9
10TranslationsLocalServiceUtil.addTranslations(translations);
My question is regarding the id for the table.
There is a way to get the next id I have to use using the API?
Is this the right way to insert values via API?
Thanks in advance and sorry for my bad english.