![JAR search and dependency download from the Maven repository](/logo.png)
ace.database.IDataContentRepository Maven / Gradle / Ivy
The newest version!
package ace.database;
import ace.database.entities.content.DataContent;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
/**
* Interface for H2 to create appropriate find methods under the hood
*/
public interface IDataContentRepository extends JpaRepository, Long> {
/**
* Finds first entity that matches variableName and returns its stored type
* @param variableName {@link ace.database.entities.Variable} to find
* @param {@link DataContent} to be returned
* @return the specific {@link DataContent}
*/
> T findByVariableName(String variableName);
/**
* Finds all entries that matches variableName and returns their stored type, type is expected to be same for all entries
* @param variableName {@link ace.database.entities.Variable} to find
* @param {@link DataContent} to be returned
* @return the specific {@link DataContent}
*/
> List findAllByVariableName(String variableName);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy