diff --git a/blogserver/target/classes/org/sang/mapper/UserMapper.xml b/blogserver/target/classes/org/sang/mapper/UserMapper.xml new file mode 100644 index 0000000..57c2246 --- /dev/null +++ b/blogserver/target/classes/org/sang/mapper/UserMapper.xml @@ -0,0 +1,63 @@ + + + + + + INSERT INTO user set username=#{username},password=#{password},nickname=#{nickname} + + + UPDATE user set email=#{email} WHERE id=#{id} + + + + + + + + + + + + + + + + + + + + UPDATE user set enabled=#{enabled} WHERE id=#{uid} + + + DELETE FROM user WHERE id=#{id} + + + DELETE FROM roles_user WHERE uid=#{id} + + + INSERT INTO roles_user(rid,uid) VALUES + + (#{rid},#{id}) + + + \ No newline at end of file