src/main/java/de/otto/teamdojo/service/TeamSkillQueryService.java
private Specification<TeamSkill> createSpecification(TeamSkillCriteria criteria) {
        Specification<TeamSkill> specification = Specification.where(null);
        if (criteria != null) {
            if (criteria.getId() != null) {
                specification = specification.and(buildSpecification(criteria.getId(), TeamSkill_.id));
            }
            if (criteria.getCompletedAt() != null) {
                specification = specification.and(buildRangeSpecification(criteria.getCompletedAt(), TeamSkill_.completedAt));
            }
            if (criteria.getVerifiedAt() != null) {
                specification = specification.and(buildRangeSpecification(criteria.getVerifiedAt(), TeamSkill_.verifiedAt));
            }
            if (criteria.getIrrelevant() != null) {
                specification = specification.and(buildSpecification(criteria.getIrrelevant(), TeamSkill_.irrelevant));
            }
            if (criteria.getNote() != null) {
                specification = specification.and(buildStringSpecification(criteria.getNote(), TeamSkill_.note));
            }
            if (criteria.getSkillId() != null) {
                specification = specification.and(buildReferringEntitySpecification(criteria.getSkillId(), TeamSkill_.skill, Skill_.id));
            }
            if (criteria.getTeamId() != null) {
                specification = specification.and(buildReferringEntitySpecification(criteria.getTeamId(), TeamSkill_.team, Team_.id));
            }
        }
        return specification;
    }
/**
     * Function to convert TeamSkillCriteria to a {@link Specification}
     */
Function to convert TeamSkillCriteria to a  Specification
Function to convert TeamSkillCriteria to a Specification
private Specification<TeamSkill> createSpecification(TeamSkillCriteria criteria) {
        Specification<TeamSkill> specification = Specification.where(null);
        if (criteria != null) {
            if (criteria.getId() != null) {
                specification = specification.and(buildSpecification(criteria.getId(), TeamSkill_.id));
            }
            if (criteria.getCompletedAt() != null) {
                specification = specification.and(buildRangeSpecification(criteria.getCompletedAt(), TeamSkill_.completedAt));
            }
            if (criteria.getVerifiedAt() != null) {
                specification = specification.and(buildRangeSpecification(criteria.getVerifiedAt(), TeamSkill_.verifiedAt));
            }
            if (criteria.getIrrelevant() != null) {
                specification = specification.and(buildSpecification(criteria.getIrrelevant(), TeamSkill_.irrelevant));
            }
            if (criteria.getNote() != null) {
                specification = specification.and(buildStringSpecification(criteria.getNote(), TeamSkill_.note));
            }
            if (criteria.getSkillId() != null) {
                specification = specification.and(buildReferringEntitySpecification(criteria.getSkillId(), TeamSkill_.skill, Skill_.id));
            }
            if (criteria.getTeamId() != null) {
                specification = specification.and(buildReferringEntitySpecification(criteria.getTeamId(), TeamSkill_.team, Team_.id));
            }
        }
        return specification;
    }
private Specification < TeamSkill > createSpecification ( TeamSkillCriteria criteria ) { Specification < TeamSkill > specification = Specification . where ( null ) ; if ( criteria != null ) { if ( criteria . getId ( ) != null ) { specification = specification . and ( buildSpecification ( criteria . getId ( ) , TeamSkill_ . id ) ) ; } if ( criteria . getCompletedAt ( ) != null ) { specification = specification . and ( buildRangeSpecification ( criteria . getCompletedAt ( ) , TeamSkill_ . completedAt ) ) ; } if ( criteria . getVerifiedAt ( ) != null ) { specification = specification . and ( buildRangeSpecification ( criteria . getVerifiedAt ( ) , TeamSkill_ . verifiedAt ) ) ; } if ( criteria . getIrrelevant ( ) != null ) { specification = specification . and ( buildSpecification ( criteria . getIrrelevant ( ) , TeamSkill_ . irrelevant ) ) ; } if ( criteria . getNote ( ) != null ) { specification = specification . and ( buildStringSpecification ( criteria . getNote ( ) , TeamSkill_ . note ) ) ; } if ( criteria . getSkillId ( ) != null ) { specification = specification . and ( buildReferringEntitySpecification ( criteria . getSkillId ( ) , TeamSkill_ . skill , Skill_ . id ) ) ; } if ( criteria . getTeamId ( ) != null ) { specification = specification . and ( buildReferringEntitySpecification ( criteria . getTeamId ( ) , TeamSkill_ . team , Team_ . id ) ) ; } } return specification ; }
Function to convert TeamSkillCriteria to a {@link Specification}
Function to convert TeamSkillCriteria to a { @link Specification }