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,
Use this content for study queries in jhipster...
http://docs.spring.io/spring-data/data-commons/docs/1.6.1.RELEASE/reference/html/repositories.html
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.