Spring Data JPA Query By Example: Write 10x Less Code for Dynamic Searches

Поділитися
Вставка
  • Опубліковано 16 січ 2025

КОМЕНТАРІ • 54

  • @Jvnyor
    @Jvnyor 2 місяці тому +1

    Thanks a lot for this content! It's the first time I've seen this feature in use!

  • @vishrutagrawal6770
    @vishrutagrawal6770 2 місяці тому +2

    Very insightful, thank you!

  • @omotosoiyanu1767
    @omotosoiyanu1767 2 місяці тому +4

    Instead of passing an employee object in the controller or service class can I create a dto and just pass that instead and still be able to retrieve the employee class also

  • @korponaiz
    @korponaiz 2 місяці тому +1

    Thanks Dan, I tried it and it's brillant.

  • @ghostcoderz
    @ghostcoderz 2 місяці тому +1

    Great video. Really like your content. Always sharing something new and happy to find that Spring Boot is enhancing with such great stuffs ❤

  • @isasubani
    @isasubani 2 місяці тому +1

    Thanks, Dan. I will try that feature later.

  • @anjanx44
    @anjanx44 2 місяці тому

    very informative and helpful

  • @SergeyKhaylov
    @SergeyKhaylov 2 місяці тому

    Thank you very much. Very useful video. Just what i need for the current task

  • @testChannel-gn1jm
    @testChannel-gn1jm 2 місяці тому

    Hi Dan
    Love you videos , i keep watching various new and old ones from time to time.
    Can you make a video about Liquibase and/or Flyway, how they are used, what problem they solve, implementation etc
    Thanks

  • @nizamibudagov5832
    @nizamibudagov5832 2 місяці тому

    Thank you)

  • @tonydeveloperdndndn
    @tonydeveloperdndndn 2 місяці тому

    Thanks.

  • @ayuobmousa6589
    @ayuobmousa6589 2 місяці тому

    Thanks al lot thats helps

  • @bizoitz86
    @bizoitz86 2 місяці тому +3

    Doesn’t JpaRepository extend QueryByExampleExecutor?

  • @HuapinChiu
    @HuapinChiu 6 днів тому

    Does query by example mix the responsibilities of repository and service ?

  • @pavancb5806
    @pavancb5806 2 місяці тому +1

    What is the theme name you are using ?

  • @jbdbuilders01
    @jbdbuilders01 Місяць тому +55

    Most rich people stay rich by spending like the poor and investing without stopping then most poor people stay poor by spending like the rich yet not investing like the rich but impressing them. People prefer to spend money on liabilities, Rather than investing in assets and be very profitable.

    • @marie-louiseleroux828
      @marie-louiseleroux828 Місяць тому

      You are so correct! Save, invest and spend for necessities and a few small luxuries relatives to one's total assets ratio.

    • @thihanhphan7777
      @thihanhphan7777 Місяць тому

      Investing in crypto now should be in every wise individuals list, in some months time you'll be ecstatic with the decision you made today.

    • @chandraprakashpanday6244
      @chandraprakashpanday6244 Місяць тому

      I wanted to trade Crypto but got discouraged by the fluctuations in price

    • @mdionise
      @mdionise Місяць тому

      Now, I Just realized that the secret to making a million is saving for better trades. I always tell myself you don't need that new Maserati or that vacation just yet. That mindset helped me make more money trading. For example last year I Traded with 10k in Crypto and made about $146k, but guess what? I put it all back and traded again and now I am rounding up close to a million

    • @blazebeecher
      @blazebeecher Місяць тому

      Hello how do you make such?? I'm a born Christian and sometimes I feel so down 🤦‍♀️of myself because of low finance but I still believe in God

  • @GreggBolinger
    @GreggBolinger Місяць тому

    JpaRepository itself extends QBE Executor. So do you need to also extend it on your own repository interface?

  • @elhadjibrahimabalde1234
    @elhadjibrahimabalde1234 2 місяці тому

    veri nice and easier that the query dsl

  • @alessandrodestefano3823
    @alessandrodestefano3823 2 місяці тому

    In 2024, do you suggest using Spring Data JPA or Spring Data JDBC? And what if I choose not to use Spring Data at all? What are my options?

    • @xCaleb
      @xCaleb Місяць тому

      I'm pretty new to Spring myself (only written basic API backends) and I, too, am not sure about the actual differences and pros/cons of each of these, and which choice is overall "best". So I would love a video specifically about comparing these options too!

  • @shshlomy
    @shshlomy 2 місяці тому +2

    great video, one question: why dont you use lombok annotations for all the boilerplate code?

    • @DanVega
      @DanVega  2 місяці тому

      Lombok is a great project and needed for awhile. I just don't think you need to use it any longer. There are ways to cut down on boiler plate (records) and your IDE can do a lot of the heavy lifting now.
      www.danvega.dev/blog/no-lombok

  • @cutechinmoy
    @cutechinmoy 2 місяці тому +2

    would have been better if you would have compared Specification with QBE.use case of each

  • @Indisputable21
    @Indisputable21 2 місяці тому +3

    Why no lombok?

    • @DanVega
      @DanVega  2 місяці тому +7

      @@Indisputable21 I just don’t see the need for it 🤷‍♂️

  • @mertbahadir10
    @mertbahadir10 2 місяці тому

    feels like graphql flexibility.