Java Mybatis ?????????
???????????? ???????[ 2015/7/24 10:45:10 ] ???????????????????
???????Mybatis????
????MyBatis??????????????SQL???洢??????????????????MyBatis?????????????е?JDBC???????????????????????????????????????MyBatis?????ü???XML?????????????????????????????????????Map????POJOs?????java????????????е?????
????????MyBatis????????
????(1)???????ò??????
?????????????????????????
?????????????????????????????????????????Java??????????SQL????????????????????MappedStatement??????????????????????á???е?SQL?????????????????洢??????С?
????(2)???????????
??????????????????Mybatis????API
??????????????SQL??ID????????????
??????????????????????2???????????д????
????(3)??????????? ??????????API?????????????
??????????????SQL??ID????????????
????????????
????(A)????SQL??ID????????MappedStatement????
????(B)?????????????????MappedStatement????????????е?SQL????д????????
????(C)???????????????????????SQL??????д???????????????У????????н????
????(D)????MappedStatement?????е?????????????????н?????????????????????????????
????(E)????????????
????(4)????????????????????????
????orm???????????
???????????ù???hibernate??mybatis?????????????????????????
?????????????(?????XML?????????)??? sessionfactory.
??????sessionfactory ???? session
??????session ??????????????????????????.
???????????????session ??
??????java ????? ????????????mapping ?????????????????xml ?????
??????????
????Mybatis??????????????
????API????????????????API??????????????Щ????API??????????????????????????????????????????????????????????
????????????????????SQL?????SQL??????SQL??к???н????????????????????????????????????????????????
???????????????????????????????????????????????????ü??????洦?????Щ????????????????????????????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11