Results 1 to 2 of 2

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

  1. #1
    Join Date
    Mar 2012
    Posts
    3

    Question 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. #2
    Join Date
    Mar 2012
    Posts
    3

    Default

    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •