generator-jhipster icon indicating copy to clipboard operation
generator-jhipster copied to clipboard

UserRepository and PersistentTokenRepository has different implementations, split to each generator.

Open mshima opened this issue 1 year ago • 3 comments

Overview of the feature request

Server generator should be used for shared code. UserRepository for Cassandra is specific and should be split. https://github.com/jhipster/generator-jhipster/blob/283e987c65d9b2debadcb06d0867c8c1bdf1d0b7/generators/server/templates/src/main/java/package/repository/UserRepository.java.ejs#L441

Same for PersistentTokenRepository: https://github.com/jhipster/generator-jhipster/blob/ef5a5d334f710976164ee6a297d593d0ecaad593/generators/server/templates/src/main/java/package/repository/PersistentTokenRepository.java.ejs#L86

Others databases has some shared code, but still very different.

Motivation for or Use Case
Related issues or PR
  • [ ] Checking this box is mandatory (this is just to show you read everything)

mshima avatar Jan 03 '24 19:01 mshima

@mshima are you looking to move these into 'jhipster:cassandra'?

dwarakaprasad avatar Mar 28 '24 14:03 dwarakaprasad

Yes, I think UserRepository was moved, PersistentTokenRepository still missing.

mshima avatar Mar 28 '24 15:03 mshima

PersistentTokenRepository still missing

Ok, will work on it this week...

dwarakaprasad avatar Mar 31 '24 18:03 dwarakaprasad