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!

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 Saving Data with Hibernate

[SOLVED] - Error Msg: Table Contact not found ?

WARN: SQL Error: 42102, SQLState: 42S02
Apr 24, 2016 7:27:03 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions
ERROR: Tabelle "CONTACT" not found
Table "CONTACT" not found; SQL statement:
insert into Contact (id, email, firstName, lastName, phone) values (null, ?, ?, ?, ?) [42102-191]
Exception in thread "main" org.hibernate.exception.SQLGrammarException: could not prepare statement

found a thread on stack but not sure how to implement :-( http://stackoverflow.com/questions/5763747/h2-in-memory-database-table-not-found


1 Answer

Solved, had a missing 'm' in hibernate.cfg.xml

<property name="hbm2ddl.auto">create</property>

Wow, I had that exact typo, thanks!