src/main/java/de/otto/teamdojo/service/LevelSkillQueryService.java
private Specification<LevelSkill> createSpecification(LevelSkillCriteria criteria) {
        Specification<LevelSkill> specification = Specification.where(null);
        if (criteria != null) {
            if (criteria.getId() != null) {
                specification = specification.and(buildSpecification(criteria.getId(), LevelSkill_.id));
            }
            if (criteria.getSkillId() != null) {
                specification = specification.and(buildReferringEntitySpecification(criteria.getSkillId(), LevelSkill_.skill, Skill_.id));
            }
            if (criteria.getLevelId() != null) {
                specification = specification.and(buildReferringEntitySpecification(criteria.getLevelId(), LevelSkill_.level, Level_.id));
            }
        }
        return specification;
    }
/**
     * Function to convert LevelSkillCriteria to a {@link Specification}
     */
Function to convert LevelSkillCriteria to a  Specification
Function to convert LevelSkillCriteria to a Specification
private Specification<LevelSkill> createSpecification(LevelSkillCriteria criteria) {
        Specification<LevelSkill> specification = Specification.where(null);
        if (criteria != null) {
            if (criteria.getId() != null) {
                specification = specification.and(buildSpecification(criteria.getId(), LevelSkill_.id));
            }
            if (criteria.getSkillId() != null) {
                specification = specification.and(buildReferringEntitySpecification(criteria.getSkillId(), LevelSkill_.skill, Skill_.id));
            }
            if (criteria.getLevelId() != null) {
                specification = specification.and(buildReferringEntitySpecification(criteria.getLevelId(), LevelSkill_.level, Level_.id));
            }
        }
        return specification;
    }
private Specification < LevelSkill > createSpecification ( LevelSkillCriteria criteria ) { Specification < LevelSkill > specification = Specification . where ( null ) ; if ( criteria != null ) { if ( criteria . getId ( ) != null ) { specification = specification . and ( buildSpecification ( criteria . getId ( ) , LevelSkill_ . id ) ) ; } if ( criteria . getSkillId ( ) != null ) { specification = specification . and ( buildReferringEntitySpecification ( criteria . getSkillId ( ) , LevelSkill_ . skill , Skill_ . id ) ) ; } if ( criteria . getLevelId ( ) != null ) { specification = specification . and ( buildReferringEntitySpecification ( criteria . getLevelId ( ) , LevelSkill_ . level , Level_ . id ) ) ; } } return specification ; }
Function to convert LevelSkillCriteria to a {@link Specification}
Function to convert LevelSkillCriteria to a { @link Specification }