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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:21:41+00:00 2026-05-27T00:21:41+00:00

I am using Glassfish 2 and container managed persistence with Hibernate 3.2 as persistence

  • 0

I am using Glassfish 2 and container managed persistence with Hibernate 3.2 as persistence provider. I have some finder method in my business logic, which manipulates some persistent entities, which have been fetched via the EntityManager. The manipulation is just changing a String property (deleting an element from a collection leads to the same effect).
I do not call anything like save or persist on my EntityManager. I just want to return some changed entities to my client.

It seems when the container commits the transaction the changes to my entity are saved automatically. Is there some magic Hibernate or Glassfish behaviour I missed completely so far?

  • 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-27T00:21:41+00:00Added an answer on May 27, 2026 at 12:21 am

    If the entity you’ve fetched is in Managed state then at the end of transaction, changes made to the entity will be persisted. That’s the contract that the JPA provider must obey to.

    This question might be helpful for you: Transactional saves without calling update method

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

Sidebar

Related Questions

I've got a web application, deployed on GlassFish 3.0.1, which is using container managed
I have a Servlet container (Glassfish/OC4J) which service some JAX-WS web service endpoints which
I am using JPA in a Glassfish Container. I have the following Modell (not
I'm using Embedded Glassfish to do some In-Container-Tests with Arquillian. Now, when my test
I'm using spring(3.0.4.RELEASE) and hibernate (3.4.0.GA) and deploying into a glassfish (web_3.1) container. I
I have an @Stateless EJB method in which I delete some entries from a
using ejb 3.1, servlet 3.0 (glassfish server v3) Scenario: I have MDB that listen
I've created a JEE6 web design using glassfish as the container and runtime enviornment,
I am using a fresh Glassfish install with very little customizations. I have a
Using Glassfish 3.1 with Eclipselink as JPA provider on board. Got stateless bean with

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.