net.sourceforge.mystique.infrastructure.persistence
Class VersionJpaRepository

java.lang.Object
  extended by net.sourceforge.mystique.infrastructure.persistence.JpaRepository<Version,java.lang.Long>
      extended by 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]

Field Summary
 
Fields inherited from class net.sourceforge.mystique.infrastructure.persistence.JpaRepository
entityManager
 
Constructor Summary
VersionJpaRepository()
           
 
Method Summary
 Version findById(java.lang.Long id)
           
 java.util.List<Version> findByProject(Project project, int offset, int limit)
           
 Version findByProjectAndNumber(Project project, java.lang.String number)
           
 void store(Version version)
           
 
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
 
Methods inherited from interface net.sourceforge.mystique.domain.repository.SimpleRepository
remove
 

Constructor Detail

VersionJpaRepository

public VersionJpaRepository()
Method Detail

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.