Skip to content

Instantly share code, notes, and snippets.

@billdozr
Created December 18, 2009 11:12
Show Gist options
  • Save billdozr/259443 to your computer and use it in GitHub Desktop.
Save billdozr/259443 to your computer and use it in GitHub Desktop.
(defn test-create-label [request]
(let [spring-ctx
(WebApplicationContextUtils/getWebApplicationContext (request :servlet-context))
label-dao (.getBean spring-ctx "labelDao")
new-label (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