package com.egoveris.ffdd.base.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.egoveris.ffdd.base.model.DynamicComponentField;
import com.egoveris.ffdd.base.model.Item;

public interface DynamicComponenteRepository extends JpaRepository<DynamicComponentField, Integer>{

	@Query("SELECT d FROM Item d WHERE d.componente.nombre = :componentName ORDER BY d.orden")
	List<Item> findMultivaloresComponente(@Param("componentName") final String componentName);
}



{'avg_line_length': 33.26315789473684, 'max_line_length': 99, 'alphanum_fraction': 0.8259493670886076, 'licenses': ['MIT'], 'repository_name': 'GrupoWeb/k8s_srv_mineco', 'path': 'build/deployment/digigob/digigob/ffdd-parent/ffdd-base-core/src/main/java/com/egoveris/ffdd/base/repository/DynamicComponenteRepository.java', 'size': 632, 'lang': 'Java'}