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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:55:31+00:00 2026-05-16T09:55:31+00:00

I stuck with entry deleting an entry from DB. I have Hibenrnate integrated with

  • 0

I stuck with entry deleting an entry from DB. I have Hibenrnate integrated with spring. RDMS is HyperSql and application server is

Tomcat 6. For dependency management I use maven and for development I use Eclipse with maven plug-in.

Hibernate is in version: 3.3.2.GA
Spring is in version: 3.0.3.RELEASE
HyperSql is in version: 2.0.0

My problem is as follows. First, I store entry into database using merge. This entry is request for user’s registration. After entry is stored into db, I send email to that new user. This email contains confirmation link. This is used to verify users email address he/she entered making registration request. After user goes to link, which I sent in email, user is asked for credentials and if credentials are ok, the registration request is confirmed and should be deleted from DB. I’m trying to delete this entry simply using delete(Object) method. Everything seems to be just fine, until I try to access to same request I deleted few moments ago. This entry is not actually deleted and in log I find next message:

handling transient entity in delete processing.

I tried to flush session and to clear it, but it didn’t done anything good.

Session factory is: org.springframework.orm.hibernate3.LocalSessionFactoryBean

Any help will be appreciated.

Best regards,
Tiho

  • 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-16T09:55:31+00:00Added an answer on May 16, 2026 at 9:55 am

    Do you load the object in the same session you delete?

    You should, because that way the object gets to be managed by that session. You cannot merge the object somewhere, pass it on, and then plainly delete it.
    The transaction has been closed and the object is then transient (unmanaged). In short, just before you delete, load the object. You have the id so it shouldn’t be difficult.

    EDIT

    Moved the comment with the working answer into the question.

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

Sidebar

Related Questions

Kinda stuck here... I have an application with lets say 5000 rows of data
I'm stuck with retrieving data from a MySQL-database in an efficient way. I have
I stuck with problem of mail application , i am developing a website for
I have a function written to delete entries from a table called stack. I
I'm trying to change a database entry with PHP but is stuck with this
I'm new to cryptography and I'm a bit stuck: I'm trying to connect (from
I'm stuck on a routing problem within a Rails 3.0.x application. What I'm trying
I have almost no experience with PHP and right now I'm stuck at the
I'm converting a Castle/Monorails application into a Unity/Asp.NET MVC one, I'm stuck in trying
I wish to translate my entire application into a different language. I have added

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.