Skip to content

Instantly share code, notes, and snippets.

@nthx
Created December 17, 2011 03:39
Show Gist options
  • Save nthx/1489059 to your computer and use it in GitHub Desktop.
Save nthx/1489059 to your computer and use it in GitHub Desktop.
/** @@pat.transaction */
public void prolongCopy(Copy copy, DateRepresentation newReturnDate)
{
copy.returnDate = newReturnDate;
}
public Copy getCopyById(Long id) {
return (Copy) copies.get(id); //copies is java.util.Map
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment