Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Hibernate Basics Getting Started with Hibernate Adding a POJO with JPA Annotations

Alexey Papin
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexey Papin
iOS Development Techdegree Graduate 26,950 Points

Looks like IntellyJ couldnt find Hibernate libraries

Started project Contactmgr-Hibernate, coded everything as in video. Problems started in hibernate.cfg.xml. Values of connection.driver_class and dialect marked by red color and IDE messages "Couldnt resolve class.. " for "org.h2.Driver" and "org.hibernate.dialect.H2Dialect" values. Gradle build file same as in video for sure (same versions of libs). And then IDE coldnt resolve "@Entity". Please help.

2 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

We'll start with the obvious question... Did you rebuild/refresh the Gradle build file?

If that doesn't work, the only suggestion I have (I had to do this once before as well). Download the latest Project Files and start with the new files. Or, pull the latest up side-by-side with yours and see if you can find the error. I'm guessing it's probably something very small.

I once spend a couple hours debugging only to finally realize I transposed 2 letters in one of the dependency's names.

Good Luck. :) :dizzy:

Alexey Papin
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexey Papin
iOS Development Techdegree Graduate 26,950 Points

Huge thanks, Jason for fast respond ) Yep, after about hour I've spent to find that bug, I just downloaded zip file of project and everything is fine ) If I'll find out what was the problem I'll make you know )