Spring Data JPA : How to write custom query by JpaRespository | Native Query

Поділитися
Вставка
  • Опубліковано 5 лис 2024

КОМЕНТАРІ • 78

  • @pranavrustogi2613
    @pranavrustogi2613 2 роки тому +2

    Thank you so much bro. I was stuck in my project and didn't got any result but your video resolved it in just 5 minutes. Thank you so much again.

  • @abhijeetsingh4136
    @abhijeetsingh4136 3 роки тому +2

    Bro you have no idea how much happy i am right now after watching your video and running my code successfully...God bless you man...

    • @TechTalkDebu
      @TechTalkDebu  3 роки тому

      Thank you so much ... You are most welcome

  • @vaibhavbhoite5464
    @vaibhavbhoite5464 2 роки тому +4

    Great Explained Man..! I stuck in my project very badly... your video helped me a lot. nicely explained custom query

    • @TechTalkDebu
      @TechTalkDebu  2 роки тому

      Thank you so much for your valuable feedback

  • @tejabtitare5169
    @tejabtitare5169 4 роки тому +2

    Nice example.. I am looking more example for multiple join table custom query for update/save scenario.. Left/ right/innerjoin example.. Thanks

    • @TechTalkDebu
      @TechTalkDebu  4 роки тому +2

      Thank you.... I have shown here for select statement... Anyways I will look into this tropic...

  • @shubhamkadbe1386
    @shubhamkadbe1386 2 роки тому +1

    Perfect and simple explaination...Thank You.

  • @ujjvalsharma5055
    @ujjvalsharma5055 3 роки тому +3

    This is wonderful video and great explaination. May your channel gro, and I encourage you post more content. great job

    • @TechTalkDebu
      @TechTalkDebu  3 роки тому

      Thank you 💖 for your support and feedback 😊

  • @chandrasekharreddy8891
    @chandrasekharreddy8891 3 роки тому +2

    Very useful information with example. Thank you.

    • @TechTalkDebu
      @TechTalkDebu  3 роки тому +1

      Thank you so much for your valuable feedback

  • @kirane5911
    @kirane5911 Рік тому +1

    Very good Explanation sir

  • @kappaj01
    @kappaj01 4 роки тому +1

    You have @Transactional at the class level of the service. This will add a lot of extra overhead for a mere get, search. Much more efficient to add to update and insert methods only.

    • @TechTalkDebu
      @TechTalkDebu  4 роки тому +1

      You are correct ....and good catch... For making simple, I have used on the class level... As my concerns was how to write custom or native query using JpaRepository.... But for performance wise better to use method level for update, delete and also save ( not for get or retrieve ).. really appreciate your observations... Thank you

  • @nullpointer500
    @nullpointer500 Рік тому

    Such an awesome explanation I wish u get million likes and subscribers

    • @TechTalkDebu
      @TechTalkDebu  Рік тому

      Thank you so much for your valuable input

  • @indiankaran_c8865
    @indiankaran_c8865 3 роки тому +1

    need tutorial on mapping Decode function or CASE statement in which new column are there

    • @TechTalkDebu
      @TechTalkDebu  3 роки тому

      Ok.. Thank you for being out this topic.

  • @rushikeshbetkar8457
    @rushikeshbetkar8457 2 роки тому +1

    Thank you sir this video has solved my very important issue

  • @pankajsharma-rf1ov
    @pankajsharma-rf1ov 4 роки тому +1

    Simple and easy to understand

  • @kvnagendra5354
    @kvnagendra5354 3 роки тому +1

    U saved my life man....
    Lot of love

  • @GarveshYadav13
    @GarveshYadav13 4 роки тому +1

    Simple and easy example can you create videos on SqlMapper

  • @ashutiwari1128
    @ashutiwari1128 3 роки тому +1

    very nice explaination

    • @TechTalkDebu
      @TechTalkDebu  3 роки тому

      Thank you so much for your valuable feedback

  • @manutyagi8019
    @manutyagi8019 2 роки тому +1

    How can we perform join operation using native query or JPQL?

  • @daamisanda402
    @daamisanda402 3 роки тому +1

    i need 2 methods get in my controller findAll one to get liste of prospect and the second for execute my query with findAll also so i hope you can help me thanks

    • @TechTalkDebu
      @TechTalkDebu  3 роки тому

      Yes... You can do that.... How I can help you ???

  • @sunilchandran4u
    @sunilchandran4u 4 роки тому +1

    can you help me on basic understanding of how to map user defined data types in oracle db, such as arrays in JPA . I heard i need to write custom dialect for that. Please point me to the correct video. It would be a great help. Thank you

    • @TechTalkDebu
      @TechTalkDebu  4 роки тому +1

      Sure... you can drop me an email @ techtalk.debu@gmail.com

  • @jashobantagiri976
    @jashobantagiri976 4 роки тому +1

    Sir could you please upload how to mapped table in spring data jpa and how to write custom query for them in spring data jpa.

  • @rohitprajapati1113
    @rohitprajapati1113 2 роки тому +1

    Sir how can i fetch data of particular column present in database.
    Please help me with this.

    • @TechTalkDebu
      @TechTalkDebu  2 роки тому +1

      Hi .... use @Query annotation top of the method .. syntax like this ...
      @Query("Select empid from table where xyz condition", native="true")
      Then method and logic inside the method

    • @rohitprajapati1113
      @rohitprajapati1113 2 роки тому

      @@TechTalkDebu Sir can u please make a video on this topic which will be very helpful to all.

  • @bharathReddy-t3d
    @bharathReddy-t3d Рік тому +1

    Hi thanks for the video
    I tried the same what you shared in the video i am getting IllegalArgument Exception mentioning parameter has been pased but it is not mentioned in the query.But if i am using another approach using @param it is working fine i will be glad if u could help me with this. thanks in advance for your time .hoping to hear from you soon

    • @TechTalkDebu
      @TechTalkDebu  Рік тому

      Okay.... I will create a seperate video for this.. thanks for bring out this

  • @BINAYPRIME
    @BINAYPRIME Рік тому +1

    Debu da THANKS

  • @bumblebity2902
    @bumblebity2902 3 роки тому +1

    Doesn't work, I get ApplicationContext error, when I tried to register a query to return recently created record.

    • @TechTalkDebu
      @TechTalkDebu  2 роки тому

      Might be there is some other issue in your code..plz check it once

  • @AkashKumar-es9jm
    @AkashKumar-es9jm 4 роки тому

    content of video is very good,Can u please make the video on one to many bidirectional relationship.

    • @TechTalkDebu
      @TechTalkDebu  4 роки тому +1

      Thank you... And sure I will make it

  • @gabrielrogath1520
    @gabrielrogath1520 3 роки тому +1

    I can't find the link to the next tutorial with JOIN query

    • @TechTalkDebu
      @TechTalkDebu  3 роки тому

      Oops .. sorry about that... But json query, or something else ??

  • @ashishmahanta7963
    @ashishmahanta7963 Рік тому

    Please sir make a video how to get data from multiple tables using queries

  • @ecleticodostemposatuais
    @ecleticodostemposatuais 2 роки тому

    How do I list the last 10 items from the same customer

  • @jamshidyuldashev2832
    @jamshidyuldashev2832 Рік тому +1

    is this your github url another project on description?

    • @TechTalkDebu
      @TechTalkDebu  Рік тому

      Oops sry … thanks for pointing … but that project repo there in my GitHub account as public repo

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

    GB is Germany, its UK only, btw nice video..!

  • @SlBoss14
    @SlBoss14 Рік тому

    Is it possible to write query in property or yaml file and fetch value from it like @Query(${query})? Please reply

    • @TechTalkDebu
      @TechTalkDebu  Рік тому +1

      I didn’t check , better create Common constants class and make each variable final static string and write query and then use there

  • @sujitkumar2196
    @sujitkumar2196 Рік тому

    Great explanation sir, but code is not present please provide me a link.

    • @TechTalkDebu
      @TechTalkDebu  Рік тому

      Okay.. have you checked GitHub my account,m

    • @sujitkumar2196
      @sujitkumar2196 Рік тому

      @@TechTalkDebu Yes, checked but different code is present not this one.

  • @gabrielrogath1520
    @gabrielrogath1520 3 роки тому +1

    Nice one bro

  • @gameplays997
    @gameplays997 3 роки тому +1

    Great job , thank you

  • @nationfirst640
    @nationfirst640 3 роки тому +2

    Thank you

  • @coderonly7205
    @coderonly7205 3 роки тому +1

    Thanks sir

  • @vianeyvargas7736
    @vianeyvargas7736 3 роки тому +1

    Saludos desde Colombia, Por favor @Query con Inner join

    • @TechTalkDebu
      @TechTalkDebu  3 роки тому

      Sorry, I didn't get get that... Could you please let me know...

  • @shubhamkumbhalkar9337
    @shubhamkumbhalkar9337 9 місяців тому

    Play on 1.25x Speed, thank me later

  • @venkateshneelam7922
    @venkateshneelam7922 2 роки тому

    HI Sir i am done same way i am getting getData(java.lang.String)! No property 'getData' found for type 'User'

    • @TechTalkDebu
      @TechTalkDebu  2 роки тому

      Could you the queries or db details?