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

The Archive Base Latest Questions

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

Date createddate = new Date(); project.setCreateddate(createddate); projectservice.savaorupdate(project); In the above code ‘createddate’ column is

  • 0
Date createddate = new Date();
project.setCreateddate(createddate);
projectservice.savaorupdate(project);

In the above code ‘createddate’ column is saved …
When I edit the bean and then it comes to a different controller I enter the modified date

    Date modifydate= new Date();
    project.setModifieddate(modifydate);
    projectservice.savaorupdate(project);

In this process the createddate column ll not get the value and its nullified.
Please give any solution to this situation.

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

    I think the hibernate Query is firing an update on unmodified columns also . Set the show-sql=true to find this .

                <prop key="hibernate.show_sql">true</prop>
    

    You may set dynamic-update=true at the tag level to sort it out . Check the link here .

    <class
        name="ClassName"                              (1)
        table="tableName"                             (2)
        dynamic-update="true|false"                   (8)
        dynamic-insert="true|false"                   (9)
    />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

new Date(05-MAY-09 03.55.50) is any thing wrong with this ? i am getting illegalArgumentException
How to add date is where clause. I am using following code. var opportunites
I tried out rails 3, and just started a new project. The following is
I can get the created date, file size etc for a file using the
A DB Audit Trail captures the User Last Modified, Modified Date, and Created Date.
Date coming out of a database, need to format as mm/dd/yy For Each dr
Date and time in MySQL can be stored as DATETIME, TIMESTAMP, and INTEGER (number
[{'date': '2010-04-01', 'people': 1047, 'hits': 4522}, {'date': '2010-04-03', 'people': 617, 'hits': 2582}, {'date': '2010-04-02',
Published Date returned from Twitter Search API Atom Feed as 2008-11-03T21:30:06Z which needs to
echo date(w,strtotime(date(Y-m-d))); echo date(w,strtotime(date(Y年m月d日))); Save it as utf8.You'll see the second is bigger than

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.