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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:48:09+00:00 2026-06-09T12:48:09+00:00

By executing the follwoing function: public void deleteByEntryId(long id) { super.getSession().createSQLQuery(DELETE FROM guest WHERE

  • 0

By executing the follwoing function:

public void deleteByEntryId(long id)
{
    super.getSession().createSQLQuery("DELETE FROM guest WHERE entry_fk = " + id).executeUpdate();
}

will the cache of Hibernate be aware / notified of the deletion of the Guest objects?

  • The super class is Spring’s Hibernate Template which offers the method getSession() and many others
  • createSQLQuery(…)` is a function of Hibernate.

(I am asking as depeding on whether I am deleting by object or by SQLquery I get a StaleState or a OtimistickLockException further on in my test.)

  • 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-09T12:48:11+00:00Added an answer on June 9, 2026 at 12:48 pm

    No, it won’t. Even HQL update and delete queries don’t affect in-memory state.

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

Sidebar

Related Questions

I have the following function call: public static MvcHtmlString NavLinks( this HtmlHelper helper, IList<MenuItem>
Imagine I have the following free function and functor: void myFreeFunction(void) { cout <<
This is my c++ code: class base { public: int bval; base(){ bval=0;} void
While executing daoMethod() I am getting the following exception: java.sql.SQLException: Procedure or function 'Get_Books'
I am using the following Shared Function to select a value from DB.My concern
I'm puzzled about the execution order of the following: $('#home').live('pageinit',function(){ $('#test').hide(); $(function() { alert('test1');
I get an exception while executing following piece of code bool FieldValueMessage::Get(const std::string &field,
Executing the following sql: USE [WSS_Content] EXEC sp_helplogins returns two result sets, and within
Try executing the following in JavaScript: parseInt('01'); //equals 1 parseInt('02'); //equals 2 parseInt('03'); //equals
while executing the following query, i get an error that there's an error in

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.