Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Hibernate Basics Persisting Data with Hibernate Updating and Deleting Entities

Andrey Serebryanskiy
Andrey Serebryanskiy
5,756 Points

Can not perform WHERE query

I'm trying to select some contacts from our database (e.g. all where name equals 'Andrey'). In the Hibernate user guide I found a tip, how to do it. However, I can't understand, what is going on there and, in particular, what does Person_.name mean. Here is a screenshot from user guide. Screenshot

PLease, explain me how to use WHERE queries in Hibernate 5.2+.

1 Answer

Andrey Serebryanskiy
Andrey Serebryanskiy
5,756 Points

Finally, found how to deal with WHERE statement. Here are examples of use.