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 Integrating Hibernate with Spring Add JPA Annotations to Entities

Tiaerra Sanders
Tiaerra Sanders
1,365 Points

Tables are not automatically getting created.

I have the hbm2ddl.auto configuration set in the hibernate.cfg.xml, I am using the same annotations in my POJO classes that are shown in the video, I believe the project structure is correct, and I don't get any errors on run of the app. The only thing I notice is that unlike the result in the video, I am not getting the "Hibernate: create table" message when I do a boot run (yes, my db server is running while I do this). Me not getting that create table message is my problem, but I don't know what's causing it.

I am also using the most up to date releases of these dependencies (if that matters).

2 Answers

Stefan Novak
Stefan Novak
6,791 Points

It's a shame, I really need help with this too but looks like this course is too advanced for most people on the forums.

BIJACZYK LOIC
BIJACZYK LOIC
6,457 Points

i had the same issue. i found that on the page of connection at database (the one you have to change the url on the database), in the first case, by default i had Generic H2 (Embedded). i change by Generic H2 (server), and now i can see my new column category and gif. i hope it will help someone.