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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:10:47+00:00 2026-06-02T19:10:47+00:00

We have an issue whereby not-nullable fields in our Oracle database do not exist

  • 0

We have an issue whereby not-nullable fields in our Oracle database do not exist in our TimesTen database. So the GUI part of our application writes to Oracle and then our application engine reads from TimesTen.
The problem is that some fields are not-nullable in Oracle and therefore we need them in our mapping files.
However, when we read the corresponding object from TimesTen we get an error saying that the column does not exist.
We cannot add these columns to TimesTen as they are not used by our application engine and performance/memory usage is key.
I’ve tried making these properties in question to be “lazy” in the mapping files but this didn’t seem to work.
We cannot specify default values either in Oracle for these not-nullable fields, so this seems to be tricky to resolve!

What other options do we have from a Hibernate point of view?

Thanks

  • 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-02T19:10:49+00:00Added an answer on June 2, 2026 at 7:10 pm

    As far as I know Hibernate always makes sure all columns which are mentioned in the mapping file exist in the database, too. So you can’t do it in one mapping file.

    Use two mapping files. And then you also use two hibernate.cfg.xml, one for the GUI part, one for the application engine. The difference in these two configuration files is, they refer in their mapping properties to the different mapping files. When you give the names of these configuration files as a parameter to the configure() method in the GUI part and in the application engine, then the rest of the Java code can be exactly the same for your two applications.

    If the two different mapping files (for Oracle & TimesTen) for one table should contain a lot of same xml code and you don’t want to have this xml code twice in your files, then you can use the xml mechanism of including files (with [<!ENTITY namexxx SYSTEM "filename">] and &namexxx).

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

Sidebar

Related Questions

We currently have a problem whereby on our stage servers, links that exist on
We have an issue on our page whereby the first time a button posts
We have an issue for IE browsers (only) whereby our image rotator only rotates
I have an issue whereby SQL Server Reporting Services graph image URLs become unavailable
I have a weird issue whereby I'm programming a carousel-type animation in jQuery. I
We ran into a particular issue with our Oracle table definition (DDL) and in
I have an issue whereby a client has some legacy environment (IIS 6 /
I have an issue whereby the company uses a business tracking system that captures
We have a problem in one of our web apps whereby a null reference
Hey guys, I have an issue whereby only my parent is being inserted into

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.