Criteria API Introduction

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

КОМЕНТАРІ • 12

  • @pablovillan83
    @pablovillan83 11 років тому

    Great video, thanks for sharing

  • @mostinho7
    @mostinho7 4 роки тому

    Criteria API is superset of jpql
    Instead of using jpql we can use the criteria API that can be executed by JPA provider
    10:45 doing the same thing with jpql and criteria API
    Criteria API:
    - criteriaBuilder -> criteriaQuery -> Root
    CriteriaQuery allows us to chain sql like function calls
    Todo:- continue from 17:00

  • @RaviKumarMaddi
    @RaviKumarMaddi 10 років тому

    very nice video, thanks.

  • @anatoliistepaniuk8217
    @anatoliistepaniuk8217 9 років тому +1

    Hi! Please add the github link to the video description. Thanks!

  • @clemiboi
    @clemiboi 11 років тому

    thanks for making this video.

  • @cooldude13cooldude
    @cooldude13cooldude 8 років тому

    thanks for your video

  • @rudranarayandash1466
    @rudranarayandash1466 6 років тому

    can we achive dynamic queryfor multipel table without reletionship(1-1,1-many....)?

  • @leventgo
    @leventgo 11 років тому

    Kevin,
    How can I use "like" method instead of "equal" method for CriteriaBuilder?

  • @leventgo
    @leventgo 11 років тому

    I mean I replaced the method like with equals, compiler was complaining, I had to set the generic type to String to get rid of the error like this one:
    query.select(postRoot).where(cb.like(postRoot.get("stamp"). -String- get("author"), "%Oliver%"));
    what I don't understand is why didn't I have to use generic type String with the equal method?
    I apologize if I am asking stupid questions since I am newbie to JPA :)

  • @adarshnair9846
    @adarshnair9846 4 роки тому

    Please add source code link to the description.

  • @leventgo
    @leventgo 11 років тому

    I had to replace the less than and greater than characters around the "String" for generics to be able to post the comment.