Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8840741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:32:05+00:00 2026-06-14T10:32:05+00:00

I am using <property name=hibernate.hbm2ddl.auto value=create /> in my persistence.xml for my integration test,

  • 0

I am using

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

in my persistence.xml for my integration test, and when I run the integration test, I get

ERROR SchemaExport:386 - Unsuccessful: create table tableName ...
ERROR SchemaExport:387 - Table 'tableName' already exists

but isn’t hbm2ddl.auto=create supposed to replace the table if it already exists? Why would I be getting this error?

By the way, this was working as expected last week, so I’m really confused about why I’d be getting this error all of a sudden.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:32:06+00:00Added an answer on June 14, 2026 at 10:32 am

    I ended up manually writing and executing SQL statements to drop and recreate the schema, and then it worked again as expected. I never did figure out why Hibernate wouldn’t drop and recreate the existing tables, and it hasn’t happened again since.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

using this in my hibernate cfg: <property name=hibernate.ejb.naming_strategy>org.hibernate.cfg.ImprovedNamingStrategy</property> <property name=hibernate.hbm2ddl.auto>create</property> This should make all
I have the following hibernate.cfg.xml : <hibernate-configuration> <session-factory> <property name=hibernate.format_sql>true</property> <property name=hibernate.show_sql>true</property> <property name=hibernate.connection.url>jdbc:mysql://localhost/EJB</property>
I'm trying to create integration tests using hsqldb in an in memory mode. At
I try to build some application using hibernate for persistence (my first one). The
i specified the below properties in cfg file. <property name=hibernate.cache.use_second_level_cache>true</property> <property name=hibernate.cache.provider_class> net.sf.ehcache.hibernate.EhCacheProvider</property> In
I get the following error : Message: No value given for one or more
I'm using Java Property files and would like to have a newline character put
I am trying to add a dependency to a class property using Unity Configuration
How can I change CSS display none or block property using jQuery?
I am generating PDF/HTML report from a BIRT template. I am using visibility property

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.