Skip to content

Instantly share code, notes, and snippets.

@gitjs77
Last active August 8, 2017 10:31
Show Gist options
  • Select an option

  • Save gitjs77/a6c252a82019d00e09a8cc5d6801779f to your computer and use it in GitHub Desktop.

Select an option

Save gitjs77/a6c252a82019d00e09a8cc5d6801779f to your computer and use it in GitHub Desktop.
@Query("SELECT new com.infin.it.ibank.card.CardResource$CardChangeStatus(" +
"card.status, " +
"card.blockUnblockReason, " +
"card.cardNumber) " +
"FROM Card card where card.id = ?1")
CardResource.CardChangeStatus fetchBlockedUnblockedInfo(final Long id);
@gitjs77
Copy link
Author

gitjs77 commented Aug 8, 2017

"FROM Card card where card.id = ?1"
?1 -значит брать первый аргумент метода, тоесть тут: final Long id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment