Hibernate Tutorial 31 - Projections and Query By Example

preview_player
Показать описание
In this tutorial, we'll learn how to use Projections to fine tune the results of the Criteria API. We'll also use Query By Example (QBE) to easily specify multiple where clauses in a single example object.
Рекомендации по теме
Комментарии
Автор

Great Lectures. Thanks for taking time to make these tutorials. Helped me a lot understanding Hibernate.

lydiamanickam
Автор

please create more videos on projections as you love your tutorials...thanks a lot for sharing

keshavjha
Автор

At 4:45 why are only usernames returned? What happened to userid?

vyshnavramesh
Автор

Hi Koushik.
Really admire your work :)

I have a question that i can't find the answer to:

Hibernate doesn't consider primary key for Example object---but why?
What's the benefit of this feature?
Thanks in advance

vidshark
Автор

Thanks a lot for your tutorials! I would like to retrieve Hibernate query result as result set instead of list. For example with ResultSet (JDBC) I can do resultSet.getString(index) or In List, apparently I can't do so. Is there anything that I could do for that?

kamdemkakengne
Автор

how can we call stored procedure and stored function by using hibernate, please explain it

shubhamgaikwad
Автор

Hi good explanation. I want to know how to use query by example for "or" logical operator because in this example you showed query by example using "and" logical operator and that is by default.

readerwriter-gfiy
Автор

please explain createSQLQuery() method in hibernate

shubhamgaikwad
Автор

Anyone using hibernate 5.2+ Criteria Api of hibernate.org has been deprecated .
But we can use following classes:





// Create CriteriaBuilder
CriteriaBuilder builder =

// Create CriteriaQuery
CriteriaQuery<YourClass> criteria =

half_demon