Spring Boot | Data JPA | MVC | H2 | Query Methods Example Part 3

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 58

  • @dhruvverma1001
    @dhruvverma1001 4 года назад +1

    Mind Blowing. Brain is bout to explode, It works like a superpower.

  • @anmoldeep0123
    @anmoldeep0123 5 лет назад +3

    Thanks Alien , your part 1- 4 and the JPA vanilla videos helped me a lot .

  • @TahirHussainMir24
    @TahirHussainMir24 5 лет назад +2

    I used to develop spring web applications where i always get tangled into the config stuff. Putting datasource, entitymanager transaction manager and blah blah..
    But with time and with this spring boot and spring data, it is so easy and quick.

  • @mbukuditutala2115
    @mbukuditutala2115 4 года назад +1

    I'm becoming an Alien due to your videos. Great job!

  • @anooplohana593
    @anooplohana593 5 лет назад +1

    Amazing Video it really look like magic, every thing is happening just by one line. I love this feature

  • @harikrish0075
    @harikrish0075 4 года назад

    You're tutorials are Excellent. Query sorted on tech is not worked. How to enable it?

  • @hernancervera6621
    @hernancervera6621 6 лет назад

    You are doing the Gods' work. I love you Navin

  • @viorelcasapu9951
    @viorelcasapu9951 5 лет назад +1

    That's fantastic! A bit confusing at the start, but I suppose it's going to ease a lot writing the code

  • @nguyenquan4836
    @nguyenquan4836 5 лет назад +1

    you are good explained teacher.

  • @manishjangra4332
    @manishjangra4332 6 лет назад +1

    thanks for this series Sir, hope this series will not end here, looking forward for next videos, thanks again

  • @vishalpathak832
    @vishalpathak832 6 лет назад +1

    You are a good trainer sir

  • @madhurajsingh6558
    @madhurajsingh6558 6 лет назад

    I found these tutorials very useful for me. Thanks Navin sir.

  • @nannepamulapradeep3714
    @nannepamulapradeep3714 5 лет назад

    hie navin your videos are very good to understand ,thnaks for that. i have dought in this tutorial we have an interface for that while getting object we just called @autowired but you didnt mention @component in alienrepo interface how the object got created in spring container .

  • @Gauravkumar-pe7qq
    @Gauravkumar-pe7qq 5 лет назад +1

    really Helpful, Nicely Explained sir

  • @shanmuksandeep9134
    @shanmuksandeep9134 6 лет назад +2

    i hope this also will work.
    List findByTechOrderByAnameAsc(String tech);
    isn't it Navin ??
    PS: I didnt try yet

  • @LokendrarewapatiRewapati
    @LokendrarewapatiRewapati 5 лет назад +1

    Thank you for such a nice explanation.

  • @playareang3712
    @playareang3712 6 лет назад +2

    sir plzz do it for update and delete also

  • @akashkumarrout9048
    @akashkumarrout9048 5 лет назад +1

    Hey Navin awesome video, but unfortunatly i am not getting any while I am not following the protocal of method creation in Alienrepo.class but I am getting error after compilation. Could you please provide me the solution..

  • @jayak4489
    @jayak4489 4 года назад +1

    Thanks for the tutorial. I though don't like these frameworks auto injecting / creating methods. It is not help it is confusing.

    • @kevin-ru6oe
      @kevin-ru6oe 4 года назад

      These kind of frameworks ask you to study and adopt their ways. If you want to use them, you need to learn about the framework ways to do things.

  • @mohamedcamara8248
    @mohamedcamara8248 3 года назад

    Amazing content Alian! thanks so much

  • @queenskeleton4937
    @queenskeleton4937 5 лет назад

    Is spring data jpa making heavy use of Java Reflection API to detect the method names and do its magic?

  • @kiranp1862
    @kiranp1862 6 лет назад

    please add video with Services & without curd repository if possible

  • @nishantgohel5610
    @nishantgohel5610 6 лет назад

    So which ORM is better Hibernate or Spring Data JPA ?

  • @josephpudupermanil704
    @josephpudupermanil704 5 лет назад

    Awesome videos.. Great Leaning... your ..JAVA GURU

  • @pratikgupta7373
    @pratikgupta7373 6 лет назад +1

    Nice tutorial

  • @arunkumarsanthanam8696
    @arunkumarsanthanam8696 5 лет назад

    Can we use criteria implementations in spring data jpa?

  • @aswinikumar9719
    @aswinikumar9719 5 лет назад

    Hi Sir, Excellent . i have a doubt, how can we write the @Query when we need data from two entity like one to one mapping, here you only return alien which is in the same Alien entity, but i want to return data from two table. please help me ..

  • @vijayavelsekar3853
    @vijayavelsekar3853 6 лет назад

    How to create Join query in Spring JPA? In such cases, what should be the return type of the function that we write in the AlienRepo interface?

  • @tanmoydey9643
    @tanmoydey9643 4 года назад

    complex join is possible ?

  • @pedroarnoldomachadoduran546
    @pedroarnoldomachadoduran546 5 лет назад

    I cannot find much information if look for query method, I just found one post where query methods are called Property Expressions

  • @mayuriphonde1678
    @mayuriphonde1678 5 лет назад +2

    Hi I am getting classnotfoundexcception: antlr. RecognitionException
    While try to execute custom queries
    Can you help me out in that

  • @lichaytiram9246
    @lichaytiram9246 5 лет назад

    In my project - if i say findByTech1 this work , have a reason for it?
    Anyway thank you a lot!!

  • @shauryabavishi3874
    @shauryabavishi3874 6 лет назад

    Sir can you please tell that is Java a better option against PHP?

  • @valix85
    @valix85 6 лет назад

    Great series! I like it!

  • @nguyenquan4836
    @nguyenquan4836 5 лет назад

    Help me a lots

  • @adityapatil2962
    @adityapatil2962 3 года назад

    How to fetch all values without condition?

  • @spandanmajumder4783
    @spandanmajumder4783 5 лет назад

    Hi Naveen sir,
    I have a doubt, as I know to @Autowired an object of any class A we need to mention @Component on top of that particular class A. But when we are creating object of AlienRepo interface with @Autowired in AlienController then how it is working ? Can you please clarify? TIA

    • @curiously-cinnamon
      @curiously-cinnamon Год назад

      We have to add @Component annotation for custom classes that we create. But AlienRepo is an interface that extends inbuilt CrudRepository interface, which is provided by Spring. So we don't have to create any class that implements AlienRepo, as Spring Data does that for us in the background. A bean of this class is stored in the Spring Container when the application is run. When we create object of the interface using @Autowired, I think it actually looks for the bean of that hidden class that implements the AlienRepo interface stored in Spring container, and injects it.

  • @naved460
    @naved460 5 лет назад

    suppose if we have 100 entities we have to create 100 repository implementation.

  • @babithanadar8193
    @babithanadar8193 6 лет назад

    So the query does not support update, is there another solution:
    @Query("Update Alien set tech='Python' where aid=?1")
    Alien updateByAid(int aid);
    It says: Not supported for DML operations

  • @msh1996
    @msh1996 5 лет назад

    Thanks

  • @divyangshah99
    @divyangshah99 6 лет назад

    Like is not enough, need a love button

  • @sameerchavan8513
    @sameerchavan8513 4 года назад

    Sir, but i am unable to use List in AlienRepo interface for custom methods ,i am getting error. plz have a look.

    • @Hhyxzz
      @Hhyxzz 9 месяцев назад

      what the error saying

  • @althafrahman262
    @althafrahman262 4 года назад

    thanks alien!!

  • @santanuroy2546
    @santanuroy2546 4 года назад

    [com.Uttarayan.StartApi.ApiEntity.LoginDetails@14ec036a] why am i getting this output from repo.findByuserid(userid)

  • @madhulisharout9424
    @madhulisharout9424 6 лет назад

    how to display list of aliens in jsp

    • @ahmetozdemir2207
      @ahmetozdemir2207 6 лет назад

      I actually did that. in your DAO file:
      List aliens = alienDAO.findByTechSorted(tech);
      mv.addObject("alien", aliens);
      Then add JSP file to alien like this:
      ${alien}

    • @faridoonnoori805
      @faridoonnoori805 6 лет назад

      I did with ModelAndView. the code :
      @RequestMapping("/")
      public ModelAndView Home()
      {
      ModelAndView mv= new ModelAndView("index.jsp");
      mv.addObject("lists", repo.findAll());
      return mv;
      }

  • @anushibinj
    @anushibinj 4 года назад

    ♥️

  • @faridoonnoori805
    @faridoonnoori805 6 лет назад

    Hi Navin,
    Thank you very much for good tutorial.
    I want to do CRUD, All parts is Okay, just update doesn't work.The codes of java, JSP and the error:
    @RequestMapping(value="update/{id}", method=RequestMethod.GET)
    public ModelAndView update(@PathVariable("id") int id)
    {
    ModelAndView mv= new ModelAndView("update.jsp");
    mv.addObject("lists", repo.findById(id));
    return mv;
    }
    Insert title here
    Updating Page
    Id:
    First Name:
    Last Name:

    Whitelabel Error Page
    This application has no explicit mapping for /error, so you are seeing this as a fallback.
    Mon Aug 27 00:22:30 PDT 2018
    There was an unexpected error (type=Not Found, status=404).
    /update/update.jsp
    Can you help me what the problem is?

  • @xPain91
    @xPain91 4 года назад

    How to get Alien by it's name ?
    Trying whole day to write method get to filter by user name and unsuccessful so far.
    Here is what I got:
    // show object by it's NAME
    @RequestMapping(value = "/getAlienByName/{name}")
    public ResponseEntity getAlienByName(@PathVariable("name") String userName) {
    Alien alien = repo.findByName(userName).orElseThrow(() -> new IllegalArgumentException());;
    return ResponseEntity.ok().body(alien);
    }

  • @CarmenCarter-m8o
    @CarmenCarter-m8o 2 месяца назад

    Young Donna Jones Brenda Martinez Elizabeth