Announcement Announcement Module
Collapse
No announcement yet.
I don't know how to use the Modifying queries? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • I don't know how to use the Modifying queries?

    Code:
    @Modifying
    @Query("update User u set u.firstname = ?1 where u.lastname = ?2")
    int setFixedFirstnameFor(String firstname, String lastname);
    how the code is excuted?

    if i hava a [user] object want to update, what can i do?

  • #2
    Anybody can't help me?
    The code is copied from Spring Data JPA document:
    http://static.springsource.org/sprin...eference/html/

    2.2.6. Modifying queries

    Comment

    Working...
    X