Skip to content

Instantly share code, notes, and snippets.

@billdozr
Created December 17, 2009 16:07
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 billdozr/258837 to your computer and use it in GitHub Desktop.
Save billdozr/258837 to your computer and use it in GitHub Desktop.
(defn test-create-label [request]
(do
(let [spring-ctx
(WebApplicationContextUtils/getWebApplicationContext (request :servlet-context))
label-dao (.getBean spring-ctx "labelDao")
new-label (doto (new Label)
(.setName "Label 1")
(.setDescription "testing"))]
(.create label-dao new-label)
(.read label-dao (.getId new-label)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment