Created
February 4, 2009 18:42
-
-
Save 3gcodes/58261 to your computer and use it in GitHub Desktop.
This file contains 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
try { | |
new Striperbater().init(Resources.getResourceAsReader("SqlMapConfig.xml")); | |
Striperbater.requestInit(); | |
User user = new User(); | |
user.setUsername("gdboling"); | |
Striperbater.getSqlMapClient().insert("User.insertUser", user); | |
Striperbater.getSqlMapClient().commitTransaction(); | |
Striperbater.requestComplete(); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} catch (SQLException e) { | |
e.printStackTrace(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment