Code Monkey home page Code Monkey logo

Comments (3)

odrotbohm avatar odrotbohm commented on July 17, 2024

Could you please open a ticket at https://jira.springsource.org/browse/DATAJPA? We usually start quite conservative with the API we expose but there's actually nothing the speaks against opening that up a little. Making createQuery(…) protected should do the trick if I got you correctly, right?

If you're just looking for help implementing repositories manually take a look at QueryDslRepositorySupport as well as the according QueryDslRepositorySupportTests for example usage.

Cheers,
Ollie

from spring-data-jpa.

ralscha avatar ralscha commented on July 17, 2024

Thanks for the reply. I will open a ticket. Making createQuery() protected
would perfectly work for my use case.

Isn't QueryDslRepositorySupport only usable when I try to add behaviour to a
single repository? Or can I use it for adding behaviour to all repositories?

Thanks for the help
Ralph

On Fri, Mar 25, 2011 at 1:35 PM, olivergierke <
[email protected]>wrote:

Could you please open a ticket at
https://jira.springsource.org/browse/DATAJPA? We usually start quite
conservative with the API we expose but there's actually nothing the speaks
against opening that up a little. Making createQuery() protected should do
the trick if I got you correctly, right?

If you're just looking for help implementing repositories manually take a
look at QueryDslRepositorySupport as well as the according
QueryDslRepositorySupportTests for example usage.

Cheers,
Ollie

Reply to this email directly or view it on GitHub:
#2 (comment)

from spring-data-jpa.

gregturn avatar gregturn commented on July 17, 2024

Considering:

A) QuerydslJpaPredicateExecutor now has createQuery() protected (as suggested by @odrotbohm),

and

B) QuerydslRepositorySupport has everything protected as well, meaning you can really control everything you need

...I think we can close this ticket.

To answer the last question, is it possible to apply QuerydslRepositorySupport to multiple repositories at once, perhaps. You can extend QuerydslRepositorySupport and plug in all the parts as needed, but leave the Class<?> domainClass portion open. This doesn't totally take it off your hands, but should make things operate as desired.

from spring-data-jpa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.