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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:46:27+00:00 2026-05-28T01:46:27+00:00

I have a Seam 2.2 based Java EE 5 web application with a bunch

  • 0

I have a Seam 2.2 based Java EE 5 web application with a bunch of tables mapped to JPA 1.0 Entities via Hibernate 3.3.3. During development it’s running on a Tomcat 6, Oracle 10 XE and Windows 7.

Now, we had the request by operations department to split the data model into one schema being the owner of all database objects (myschema) and one schema acting as the application’s database user (myschema_app). So I did the following:

  • create schema myschema_app
  • grant object rights on all necessary tables from myschema (both regular ones and n:m intermediate tables) and sequences depending on the usage (one or more of select, insert, update, delete) to myschema_app
  • declare private synonyms in myschema_app in order to use the same names than before and hiding the other schema’s name prefix
  • change property hibernate.default_schema to new schema name in persistence.xml
  • change user/password in Tomcat’s datasource definition in context.xml

When I start the application while having hibernate.hbm2ddl.autoset to validate, I get an exception when the framework tries to create the EntityManagerFactory telling me that a table is missing. When I execute a select statement directly in an sql tool with myschema_app connected, everything works fine.

I understood that using a synonym going on another table is transparent for the application. Has anyone an idea what I may have overlooked?

  • 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-28T01:46:28+00:00Added an answer on May 28, 2026 at 1:46 am

    My guess is that hbm2ddl seaches specifically for tables, and not for synonyms, but that your application should indeed work as if the tables existed in the schema. Try to remove the hbm2ddl option and test your application.

    EDIT: it seems my guess is true: https://forum.hibernate.org/viewtopic.php?p=2438033

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

Sidebar

Related Questions

I have a SEAM app with some JPA/Hibernate entities. And I now wonder where
I have the following problem. I have a Seam web application which features e-mail
I have a seam web application and for one page I have an hardcoded
We're about to deploy a Java web application built using JBoss Seam as the
I'm running a web application built on Seam. I would like to have an
In my Seam application, I have a Seam component that returns a ( @Datamodel
We have a system built on seam/richfaces. There's this webpage where the tables are
Is there any documentation about introducing jBoss seam to an old Hibernate/JSF project? Have
We are using Seam 2.2.0 Java 1.6.14 Weblogic 10.3.1.0 (named 11g Doh!) I have
We're developing a Java web app that utilizes JSF (Richfaces through Seam) for its

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.