Skip to content

Instantly share code, notes, and snippets.

@brianm
Created May 3, 2011 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianm/954277 to your computer and use it in GitHub Desktop.
Save brianm/954277 to your computer and use it in GitHub Desktop.
public interface TheBasics
{
@SqlUpdate("insert into something (id, name) values (:id, :name)")
int insert(@BindBean Something something);
@SqlQuery("select id, name from something where id = :id")
Something findById(@Bind("id") long id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment