Esempio n. 1
0
 @Override
 public void persist() {
   if (this.isNew()) {
     EntryLocalServiceUtil.addEntry(this);
   } else {
     EntryLocalServiceUtil.updateEntry(this);
   }
 }
  protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) {
    actionableDynamicQuery.setBaseLocalService(
        com.liferay.chat.service.EntryLocalServiceUtil.getService());
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(Entry.class);

    actionableDynamicQuery.setPrimaryKeyPropertyName("entryId");
  }
  @Override
  public ActionableDynamicQuery getActionableDynamicQuery() {
    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();

    actionableDynamicQuery.setBaseLocalService(
        com.liferay.chat.service.EntryLocalServiceUtil.getService());
    actionableDynamicQuery.setClassLoader(getClassLoader());
    actionableDynamicQuery.setModelClass(Entry.class);

    actionableDynamicQuery.setPrimaryKeyPropertyName("entryId");

    return actionableDynamicQuery;
  }