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 7548555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:43:41+00:00 2026-05-30T09:43:41+00:00

I used to have a database called database and everything was working well using

  • 0

I used to have a database called database and everything was working well using hibernate and its models.

I removed <property name="hibernate.hbm2ddl.auto"> to avoid update or create as it’s a production server, we want to do it manually.

We recently switched to database2 and so we switched the hibernate configuration file and all the hibernate XML models.

`<class name="com.api.models.database.MmApplications" table="mm_applications" catalog="database2">`

but it keeps looking for database event if we migrated the database, the models and the connexion.

 Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'database.mm_applications' doesn't exist

Does someone can help me ?

UPDATE —-

Hibernate is connecting to the right database (database2), but there is a prefix as a prefix database. making the queries hitting the database instead of database2, and when I try to force the default_schema my queries become :

`... from database.database2.mm_applications ....`

Any idea?

  • 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-05-30T09:43:42+00:00Added an answer on May 30, 2026 at 9:43 am

    I found the problem, It was an other application deployed on the same tomcat server using hibernate as well with another database (database) making a conflict with the new application …

    There is still something weird, by connecting to any database, hibernate will use the specified catalog in the hibernate models and so constructing the request using the catalog.table_name

    Hope this help someone someday.

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

Sidebar

Related Questions

I used to have a WORKING database for my ASP.NET site, up until the
I have a database called bmto with a table users in it. I used
I am querying a database in Postgres using psql. I have used the following
I have a database that I used specifically for logging actions of users. The
I used to have a situation where I hit the database a every time
I have used code like this: http://msdn.microsoft.com/en-us/library/dw70f090.aspx to access database before when working in
What are the different database options on Windows Mobile available? I have used CEDB
In one of my applications I have a 1gb database table that is used
I have a 'reference' SQL Server 2005 database that is used as our global
I have a TSQL script that is used to set up a database as

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.