简体   繁体   中英

Jhipster/MongoDB custom distinct query creation (since not possible with spring repository)

I would like to create a Distinct query from Jhipster framework since it is not possible with spring repository.

My main issue is how to connect to the DB without creating a new manual connection. I am sure there must be a way to inject the mongoDB connection in my java class but I don't know how to do that.

If someone can help ?

Cheers,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM