net.sourceforge.mystique.infrastructure.persistence
Class VersionJpaRepository
java.lang.Object
net.sourceforge.mystique.infrastructure.persistence.JpaRepository<Version,java.lang.Long>
net.sourceforge.mystique.infrastructure.persistence.VersionJpaRepository
- All Implemented Interfaces:
- SimpleRepository<Version,java.lang.Long>, VersionRepository
@Repository
public class VersionJpaRepository
- extends JpaRepository<Version,java.lang.Long>
- implements VersionRepository
- 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 |
VersionJpaRepository
public VersionJpaRepository()
findById
@Transactional(readOnly=true)
public Version findById(java.lang.Long id)
throws RepositoryException
- Specified by:
findById in interface SimpleRepository<Version,java.lang.Long>
- Throws:
RepositoryException
findByProject
@Transactional(readOnly=true)
public java.util.List<Version> findByProject(Project project,
int offset,
int limit)
throws RepositoryException
- Specified by:
findByProject in interface VersionRepository
- Throws:
RepositoryException
findByProjectAndNumber
@Transactional(readOnly=true)
public Version findByProjectAndNumber(Project project,
java.lang.String number)
throws RepositoryException
- Specified by:
findByProjectAndNumber in interface VersionRepository
- Throws:
RepositoryException
store
@Transactional
public void store(Version version)
throws RepositoryException
- Specified by:
store in interface SimpleRepository<Version,java.lang.Long>
- Throws:
RepositoryException
Copyright © 2010. All Rights Reserved.