Label Definition Data Repository (label/LabelDefinitionRepository.java)

skillhub · server/skillhub-domain/src/main/java/com/iflytek/skillhub/domain/label/LabelDefinitionRepository.java · java · Apache-2.0
database, lang:java, tag:repository, tag:metadata

A repository interface for managing label definitions, including filtering, sorting, and persistence. Use this in Java applications to handle categorized metadata or tagging systems.

// Source: https://github.com/iflytek/skillhub | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package com.iflytek.skillhub.domain.label;

import java.util.List;
import java.util.Optional;

public interface LabelDefinitionRepository {
    Optional<LabelDefinition> findById(Long id);
    Optional<LabelDefinition> findBySlug(String slug);
    Optional<LabelDefinition> findBySlugIgnoreCase(String slug);
    List<LabelDefinition> findAllByOrderBySortOrderAscIdAsc();
    List<LabelDefinition> findAllByOrderBySortOrderAscSlugAsc();
    List<LabelDefinition> findByVisibleInFilterTrueOrderBySortOrderAscIdAsc();
    List<LabelDefinition> findByVisibleInFilterTrueAndTypeOrderBySortOrderAscI

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key