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

  • Home
  • SEARCH
  • 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 8198499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:57:51+00:00 2026-06-07T05:57:51+00:00

Previously, my Java web projects used Eclipse-ordinary structure, and at the start of the

  • 0

Previously, my Java web projects used Eclipse-ordinary structure, and at the start of the container (in case, Tomcat), Hibernate generated the schemes correctly.

Now I’m using Maven infrastructure. I’ve relocated the needed files and configured all well (I think, because all is working right: Spring is starting, Hibernate is connecting the database – when it was previously created and there’s some data to fetch). I’ve tested all CRUD operations and it’s working.
The problem is that Hibernate refuses to generate the schemes (DDL) as it did when over Eclipse-ordinary infrastructure.

Additional information:

  • My persistence.xml is almost empty (as always) because Spring applicationContext.xml is starting it. I have not changed the file, it continues the same way as before.

    <!-- Location: src/main/resources/META-INF/persistence.xml -->
    <persistence>
        <persistence-unit name="jpa-persistence-unit" transaction-type="RESOURCE_LOCAL"/>
    </persistence>
    
  • Part of the Spring configuration goes here (applicationContext.xml):

    <!-- Location: src/main/webapp/WEB-INF/applicationContext.xml -->
    <!-- ... -->
    <bean id="jpaVendorAdapter" class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
        <property name="database" value="[DATABASE-NAME]" />
        <property name="showSql" value="true" />
        <property name="generateDdl" value="true" /> <!-- THIS CONFIGURATION WORKED PREVIOUSLY, NOW WITH MAVEN, IT'S IGNORED -->
        <property name="databasePlatform" value="[DIALECT]" />
    </bean>
    <!-- ... -->
    
  • I’m not using any Maven Hibernate plugin, because I just want the default behavior that occurred earlier.

  • Did Maven invalidate this “generateDdl” property!? Why!? What should I do!? I can’t find any solution.
  • 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-07T05:57:52+00:00Added an answer on June 7, 2026 at 5:57 am

    I found out the solution.

    Maven has any fault about that.

    Hibernate was not able to create my database because the “DIALECT” was wrong.

    I remembered that I changed the dialect from MySQL to MySQL-InnoDB. Hibernate was logging this problem but I couldn’t see it because the slf4j-simple dependency was not explicity imported.

    Thank you for your time, Shawn.

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

Sidebar

Related Questions

About project: I'm trying to write CMS-like web-site on Java. Previously I used PHP
I am planning to migrate a previously created Java web application to Azure. The
tomcat 7.0.16 Java 1.6.0_22 CentOS 5.6 I just switched the web.xml to servlet 3.0
I have a web application written using Java servlets. I am using Tomcat 7
I previously worked a lot with Java and now I am working more with
A previously working Ecplise now gives me the error Java Virtual Machine Launcher Could
I recently switched from a Java based project to a C#/.net project. I previously
I have a problem relating my web project. Previously when my professor ask me
I have a web app consisting of some JSPs that were previously running on
I have a simple web service sitting on our internal network. I used SOAPUI

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.