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 Spring with Hibernate File Uploads and Entity Updates in Spring + Hibernate Wrap-Up

WHat are the steps I need to take in order to connect giflib to a postgresql database?

can we do this all from the "app.properties" file?

I notice that we all also have to make changes to "hibernate.cfg.xml" in order to change the dialect ...can this be done in the "app.properties" file instead?

i added: compile 'postgresql:postgresql:9.1-901-1.jdbc4'

to dependencies.. but wasn't sure if we also needed to configure it as runtime dependency instead..

..I'm trying to connect it to a heroku postgresql database for a challenge..

Please help me somebody!! :)

1 Answer

I think the strengths of this model and the separation of concerns here is that it doesnt matter what datasource we plug in as long as the app.properties file and the data config class are rigged up to properly config the data source.