net.sourceforge.mystique.infrastructure.persistence
Class MilestoneJpaRepository

java.lang.Object
  extended by net.sourceforge.mystique.infrastructure.persistence.JpaRepository<Milestone,java.lang.Long>
      extended by net.sourceforge.mystique.infrastructure.persistence.MilestoneJpaRepository
All Implemented Interfaces:
MilestoneRepository, SimpleRepository<Milestone,java.lang.Long>

@Repository
public class MilestoneJpaRepository
extends JpaRepository<Milestone,java.lang.Long>
implements MilestoneRepository

Author:
Elias Gomes [eliasgomes@users.sourceforge.net]

Field Summary
 
Fields inherited from class net.sourceforge.mystique.infrastructure.persistence.JpaRepository
entityManager
 
Constructor Summary
MilestoneJpaRepository()
           
 
Method Summary
 Milestone findById(java.lang.Long id)
           
 java.util.List<Milestone> findByProject(Project project, int offset, int limit)
           
 Milestone findByProjectAndName(Project project, java.lang.String name)
           
 void store(Milestone milestone)
           
 
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

MilestoneJpaRepository

public MilestoneJpaRepository()
Method Detail

findById

@Transactional(readOnly=true)
public Milestone findById(java.lang.Long id)
                   throws RepositoryException
Specified by:
findById in interface SimpleRepository<Milestone,java.lang.Long>
Throws:
RepositoryException

findByProject

@Transactional(readOnly=true)
public java.util.List<Milestone> findByProject(Project project,
                                                             int offset,
                                                             int limit)
                                        throws RepositoryException
Specified by:
findByProject in interface MilestoneRepository
Throws:
RepositoryException

findByProjectAndName

@Transactional(readOnly=true)
public Milestone findByProjectAndName(Project project,
                                                    java.lang.String name)
                               throws RepositoryException
Specified by:
findByProjectAndName in interface MilestoneRepository
Throws:
RepositoryException

store

@Transactional
public void store(Milestone milestone)
           throws RepositoryException
Specified by:
store in interface SimpleRepository<Milestone,java.lang.Long>
Throws:
RepositoryException


Copyright © 2010. All Rights Reserved.