net.sourceforge.mystique.infrastructure.persistence
Class ProjectJpaRepository
java.lang.Object
net.sourceforge.mystique.infrastructure.persistence.JpaRepository<Project,java.lang.Long>
net.sourceforge.mystique.infrastructure.persistence.ProjectJpaRepository
- All Implemented Interfaces:
- ProjectRepository, Repository<Project,java.lang.Long>, SimpleRepository<Project,java.lang.Long>
@Repository
public class ProjectJpaRepository
- extends JpaRepository<Project,java.lang.Long>
- implements ProjectRepository
- Author:
- Elias Gomes [eliasgomes@users.sourceforge.net]
| Methods inherited from class net.sourceforge.mystique.infrastructure.persistence.JpaRepository |
remove |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectJpaRepository
public ProjectJpaRepository()
findById
@Transactional(readOnly=true)
public Project findById(java.lang.Long id)
throws RepositoryException
- Specified by:
findById in interface SimpleRepository<Project,java.lang.Long>
- Throws:
RepositoryException
findAll
@Transactional(readOnly=true)
public java.util.List<Project> findAll(int offset,
int limit)
throws RepositoryException
- Specified by:
findAll in interface Repository<Project,java.lang.Long>
- Throws:
RepositoryException
findByName
@Transactional(readOnly=true)
public Project findByName(java.lang.String name)
throws RepositoryException
- Specified by:
findByName in interface ProjectRepository
- Throws:
RepositoryException
store
@Transactional
public void store(Project project)
throws RepositoryException
- Specified by:
store in interface SimpleRepository<Project,java.lang.Long>
- Throws:
RepositoryException
Copyright © 2010. All Rights Reserved.