net.sourceforge.mystique.infrastructure.persistence
Class JpaRepository<T,ID>

java.lang.Object
  extended by net.sourceforge.mystique.infrastructure.persistence.JpaRepository<T,ID>
All Implemented Interfaces:
SimpleRepository<T,ID>
Direct Known Subclasses:
AttachmentJpaRepository, CommentJpaRepository, ComponentJpaRepository, ConfirmationJpaRepository, MilestoneJpaRepository, ProjectJpaRepository, TicketJpaRepository, UserJpaRepository, VersionJpaRepository

public abstract class JpaRepository<T,ID>
extends java.lang.Object
implements SimpleRepository<T,ID>

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

Field Summary
protected  javax.persistence.EntityManager entityManager
           
 
Constructor Summary
JpaRepository()
           
 
Method Summary
 void remove(T entity)
           
 
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
findById, store
 

Field Detail

entityManager

protected javax.persistence.EntityManager entityManager
Constructor Detail

JpaRepository

public JpaRepository()
Method Detail

remove

@Transactional
public void remove(T entity)
            throws RepositoryException
Specified by:
remove in interface SimpleRepository<T,ID>
Throws:
RepositoryException


Copyright © 2010. All Rights Reserved.