title: Can we use User class from spring security directly with CrudRepository
body: <p>I'm using Spring Boot and Spring Security to set up a POC.
  I want to have authentication with basic content that why I used directly  <a href="https://docs.spring.io/spring-security/site/docs/4.1.4.RELEASE/apidocs/org/springframework/security/core/userdetails/User.html" rel="nofollow noreferrer">User class</a> from Spring Security.
  I'm also using apache derby as an embedded database. I want to use <a href="https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/repository/CrudRepository.html" rel="nofollow noreferrer">CrudRepository class</a> from Spring data to have a UserRepository (database where I can store my Users).
  I get an error while running my project saying that It's not a managed type.
  Only Solution I got is to extends this class.
  Does Someone have a better solution ?</p>
  
  <p>Thanks</p>
  
  <p>Edit : Please just ask question if my question is not clear enough </p>