net.sourceforge.mystique.infrastructure.persistence
Class UserJpaRepository
java.lang.Object
net.sourceforge.mystique.infrastructure.persistence.JpaRepository<User,java.lang.Long>
net.sourceforge.mystique.infrastructure.persistence.UserJpaRepository
- All Implemented Interfaces:
- Repository<User,java.lang.Long>, SimpleRepository<User,java.lang.Long>, UserRepository
@Repository
public class UserJpaRepository
- extends JpaRepository<User,java.lang.Long>
- implements UserRepository
- 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 |
UserJpaRepository
public UserJpaRepository()
findById
@Transactional(readOnly=true)
public User findById(java.lang.Long id)
throws RepositoryException
- Specified by:
findById in interface SimpleRepository<User,java.lang.Long>
- Throws:
RepositoryException
findAll
@Transactional(readOnly=true)
public java.util.List<User> findAll(int offset,
int limit)
throws RepositoryException
- Specified by:
findAll in interface Repository<User,java.lang.Long>
- Throws:
RepositoryException
findByEmail
@Transactional(readOnly=true)
public User findByEmail(java.lang.String email)
throws RepositoryException
- Specified by:
findByEmail in interface UserRepository
- Throws:
RepositoryException
store
@Transactional
public void store(User user)
throws RepositoryException
- Specified by:
store in interface SimpleRepository<User,java.lang.Long>
- Throws:
RepositoryException
Copyright © 2010. All Rights Reserved.