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 Persisting Data with Hibernate Retrieving Data with Hibernate

M. Brown
M. Brown
29,923 Points

Annotate the findAll method so that the compiler doesn't produce warnings.

I'm reading the other topic, but I'm not quite sure what the other person is refering to when they say to incialize a SessionFactory.

1 Answer

put @SuppressWarnings("unchecked") on top of the findAll method