<%#
 Copyright 2013-2021 the original author or authors from the BegCode project.

 This file is part of the JHipster project, see https://www.jhipster.tech/
 for more information.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

      https://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-%>
package <%= entityAbsolutePackage %>.repository;

<%_ if (ormTool === 'hibernate') { _%>
import org.springframework.stereotype.Repository;
<%_ } else { _%>
import org.apache.ibatis.annotations.Mapper;
import <%= entityAbsolutePackage %>.domain.<%= persistClass %>;
<%_ } _%>
<%_ if (containsBagRelationships && databaseTypeSql && ormTool === 'hibernate') { _%>
import <%= entityAbsolutePackage %>.repository.base.<%= persistClass %>RepositoryWithBagRelationships;
<%_ } _%>
import <%= entityAbsolutePackage %>.repository.base.<%= persistClass %>BaseRepository;

<%_ if (ormTool === 'hibernate') { _%>
@Repository
<%_ } else { _%>
@Mapper
<%_ } _%>
public interface <%= entityClass %>Repository extends <% if (containsBagRelationships && databaseTypeSql && ormTool === 'hibernate') { %><%= entityClass %>RepositoryWithBagRelationships, <% } %><%= entityClass %>BaseRepository<% if (ormTool === 'mybatis') { %><<%= persistClass %>><% } %> {

    // begcode-please-regenerate-this-file 如果您不希望重新生成代码时被覆盖，将please修改为don't ！！！
}
