net.sourceforge.mystique.infrastructure.persistence
Class ConfirmationJpaRepository

java.lang.Object
  extended by net.sourceforge.mystique.infrastructure.persistence.JpaRepository<Confirmation,java.lang.Long>
      extended by net.sourceforge.mystique.infrastructure.persistence.ConfirmationJpaRepository
All Implemented Interfaces:
ConfirmationRepository, SimpleRepository<Confirmation,java.lang.Long>

@Repository
public class ConfirmationJpaRepository
extends JpaRepository<Confirmation,java.lang.Long>
implements ConfirmationRepository

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

Field Summary
 
Fields inherited from class net.sourceforge.mystique.infrastructure.persistence.JpaRepository
entityManager
 
Constructor Summary
ConfirmationJpaRepository()
           
 
Method Summary
 Confirmation findById(java.lang.Long id)
           
 java.util.List<Confirmation> findByTicket(Ticket ticket, int offset, int limit)
           
 Confirmation findByTicketAndResponsible(Ticket ticket, User responsible)
           
 void store(Confirmation confirmation)
           
 
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

ConfirmationJpaRepository

public ConfirmationJpaRepository()
Method Detail

findById

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

findByTicket

@Transactional(readOnly=true)
public java.util.List<Confirmation> findByTicket(Ticket ticket,
                                                               int offset,
                                                               int limit)
                                          throws RepositoryException
Specified by:
findByTicket in interface ConfirmationRepository
Throws:
RepositoryException

findByTicketAndResponsible

@Transactional(readOnly=true)
public Confirmation findByTicketAndResponsible(Ticket ticket,
                                                             User responsible)
                                        throws RepositoryException
Specified by:
findByTicketAndResponsible in interface ConfirmationRepository
Throws:
RepositoryException

store

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


Copyright © 2010. All Rights Reserved.