Enhancement #104

Let Hades also execute modifying queries

Added by Oliver Gierke about 1 year ago. Updated 11 months ago.

Status:Closed Start:07/28/2009
Priority:Normal Due date:
Assigned to:Oliver Gierke % Done:

100%

Category:Core DAO Spent time: -
Target version:0.7

Description

Currently Hades is only capable of executing finder queries. It would be useful if it also could execute modifing queries (updates, inserts) via DAO interface methods. Note, that deriving the query from the method name is not resaonable for this case so Hades should reject methods not backed by a Hades @Query annotation or a @NamedQuery. Regarrding terminology we should move from "finder method" to "query method".


Related issues

related to Hades - Task #105: Update documentation to extensions in query methods Closed 07/29/2009

Associated revisions

Revision 6534
Added by Oliver Gierke about 1 year ago

  • fixes #104 - allow execution of manipulating queries via finders
  • extracted query execution into own enum
  • renamed FinderMethod to QueryMethod due to change in concepts
  • transformed semantics of HadesQuery to only create and prepare an JPA query instead of also executing it
  • reflect changes in dependent classes
  • added method to test interface to test new behaviour

Revision 6728
Added by Oliver Gierke 11 months ago

  • references #104 - allow execution of modifying queries
  • added @Modifying annotation to indicate the method will execute a query modifying entities
  • cleaned up documentation to use "query method" instead of "finder method"
  • references #105 - started documenting the use of manipulating queries

Revision 6971
Added by Oliver Gierke 10 months ago

  • references #104 - updated reference documentation

History

Updated by Oliver Gierke about 1 year ago

  • Status changed from New to In progress

Updated by Oliver Gierke about 1 year ago

  • Status changed from In progress to Fixed
  • % Done changed from 0 to 100

Status geƤndert durch Changeset r6534.

Updated by Oliver Gierke 11 months ago

  • Target version set to 0.7

Updated by Oliver Gierke 11 months ago

  • Status changed from Fixed to Closed

Also available in: Atom PDF