package com.capitalone.dashboard.repository; import com.capitalone.dashboard.model.Build; import org.bson.types.ObjectId; import org.springframework.data.querydsl.QueryDslPredicateExecutor; import org.springframework.data.repository.CrudRepository; /** * Repository for {@link Build} data. */ public interface BuildRepository extends CrudRepository<Build, ObjectId>, QueryDslPredicateExecutor<Build> { /** * Finds the {@link Build} with the given number for a specific {@link com.capitalone.dashboard.model.CollectorItem}. * * @param collectorItemId collector item id * @param number buld number * @return a {@link Build} */ Build findByCollectorItemIdAndNumber(ObjectId collectorItemId, String number); }