All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.savantly.sprout.module.content.model.webPage.WebPageRepository Maven / Gradle / Ivy

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