package <%=packageName%>.service;
<%  var instanceType = (dto == 'mapstruct') ? entityClass + 'DTO' : entityClass;
    var instanceName = (dto == 'mapstruct') ? entityInstance + 'DTO' : entityInstance; %>
import <%=packageName%>.domain.<%= entityClass %>;<% if (dto == 'mapstruct') { %>
import <%=packageName%>.web.rest.dto.<%= entityClass %>DTO;<% } if (pagination != 'no') { %>
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;<% } %>
<% if (dto == 'mapstruct') { %>
import java.util.LinkedList;<% } %>
import java.util.List;

/**
 * Service Interface for managing <%= entityClass %>.
 */
public interface <%= entityClass %>Service {

    /**
     * Save a <%= entityInstance %>.
     * @param input the <%= instanceType %>
     * @return the persisted entity
     */
    public <%= instanceType %> save(<%= instanceType %> <%= instanceName %>);

    /**
     *  get all the <%= entityInstance %>s.
     *  @return the list of entities
     */
    public <% if (pagination != 'no') { %>Page<<%= entityClass %><% } else { %>List<<%= instanceType %><% } %>> findAll(<% if (pagination != 'no') { %>Pageable pageable<% } %>);
<% for (idx in relationships) { if (relationships[idx].relationshipType == 'one-to-one' && relationships[idx].ownerSide != true) { -%>
    /**
     *  get all the <%= entityInstance %>s where <%= relationships[idx].relationshipNameCapitalized %> is null.
     *  @return the list of entities
     */
    public List<<%= instanceType %>> findAllWhere<%= relationships[idx].relationshipNameCapitalized %>IsNull();
<% } } -%>

    /**
     *  get the "id" <%= entityInstance %>.
     *  @param input id
     *  @return the entity
     */
    public <%= instanceType %> findOne(<%= pkType %> id);

    /**
     *  delete the "id" <%= entityInstance %>.
     *  @param input id
     */
    public void delete(<%= pkType %> id);<% if (searchEngine == 'elasticsearch') { %>

    /**
     * search for the <%= entityInstance %> corresponding
     * to the query.
     * @param input query
     */
    public List<<%= instanceType %>> search(String query);<% } %>
}

@@ -723,52 +723,8 @@
 %25%3E.%0A
-     * @param input the %3C%25= instanceType %25%3E%0A
     
@@ -1597,32 +1597,8 @@
 %25%3E.%0A
-     *  @param input id%0A
     
@@ -1612,32 +1612,32 @@
 turn the entity%0A
+
      */%0A    publ
@@ -1746,32 +1746,8 @@
 %25%3E.%0A
-     *  @param input id%0A
     
@@ -1903,16 +1903,16 @@
 ponding%0A
+
      * t
@@ -1928,34 +1928,8 @@
 ry.%0A
-     * @param input query%0A
     

Remove wrong Javadoc