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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:50:35+00:00 2026-05-20T20:50:35+00:00

Following a recent question , I would like to add an int column to

  • 0

Following a recent question, I would like to add an int column to a table without adding an int member to the class. This will only be used when loading/saving mass-scale instances. We don’t want this int in memory.

Given a MyClass entity – how can I add a MyIntColumn to its table?

Notes:
– Hibernate 3.6.0 Final + Oracle 11g + Java pure
– Using annotations

Thanks,
– 10 of a Kind

  • 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-20T20:50:36+00:00Added an answer on May 20, 2026 at 8:50 pm

    If you want to let hibernate create your schema you’d have to create a class member. What you can do is run a direct SQL query (not via HQL) that will alter your table and add the desired column. The problem here is that hibernate won’t be able to use this column unless you define a class member for it – so unless you are going to use direct SQL or let Oracle manage this column (by default values, triggers etc.) you cannot do much with this column.

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

Sidebar

Related Questions

This is related to a recent question . Basically the following code: class A
Following this question: Good crash reporting library in c# Is there any library like
Following on from this question what would be the best way to write a
In answering Aaron's recent question , I'd like to do something like the following:
Following on from my recent question on Large, Complex Objects as a Web Service
Following on from my recent question regarding parsing XML files in Java I have
In reading this recent question about an unhandled XmlException, I tried to reproduce it
As per this recent question, I'll be needing to store all datetime objects in
I was asked the following question at a recent job interview: What do you
In this recent Stack Overflow question , the author wanted to change a list

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.