Interface UserDAO

All Superinterfaces:
org.springframework.data.repository.CrudRepository<User,Integer>, org.springframework.data.repository.Repository<User,Integer>

public interface UserDAO extends org.springframework.data.repository.CrudRepository<User,Integer>
DAO for the User class.
Version:
0.4.1
Author:
Gianlorenzo Martini
  • Method Summary

    Modifier and Type
    Method
    Description
     
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
  • Method Details

    • findByUsername

      Optional<User> findByUsername(String username)
    • findByCompilationCode

      @Query("SELECT u FROM User u where u.compilationId = :code") Optional<User> findByCompilationCode(@Param("code") String code)