Created
December 17, 2009 16:07
-
-
Save billdozr/258837 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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