Mod4j: Modeling for Java using Domain Specific Languages

Persisted objects within a Hibernate session do not need to be explicitly updated

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.1
  • Fix Version/s: 1.1.0
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

From the Hibernate reference documentaion:
Transactional persistent instances (ie. objects loaded, saved, created or
queried by the Session) may be manipulated by the application and any
changes to persistent state will be persisted when the Session is flushed
There is no need to call a particular method (like update(), which has a different purpose) to make your modifications
persistent. So the most straightforward way to update the state of an object is
to load() it, and then manipulate it directly, while the Session is open.

Other persistency frameworks may work different so a dao methods for update are still required. For Hibernate the implementation of this method does nothing.

Issue Links

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: