![JAR search and dependency download from the Maven repository](/logo.png)
net.savantly.sprout.module.content.model.webPage.WebPageRepository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sprout-modules-content Show documentation
Show all versions of sprout-modules-content Show documentation
Provides dynamic content management for the Sprout Platform
The newest version!
package net.savantly.sprout.module.content.model.webPage;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import net.savantly.sprout.core.domain.PersistedDomainObjectRepository;
@RepositoryRestResource(collectionResourceRel = "webPages", itemResourceRel = "webPage", path = "webPages")
public interface WebPageRepository extends PersistedDomainObjectRepository{
WebPage findOneByName(@Param("name") String name);
@Query("SELECT p FROM WebPage p WHERE p.home = 1")
WebPage findHomePage();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy