recover after delete. detail log show as follow.
0000000000000000000000000000000000000000 e6f6d6088bd5346e3a7dac4a0176118e2c6fa791 wanderknight <wanderknight@gmail.com> 1403412742 +0800	clone: from git@github.com:hncu/usedlib.git
e6f6d6088bd5346e3a7dac4a0176118e2c6fa791 679f8a186e124306fa0e5cb494da76af3d91944e wanderknight <wanderknight@gmail.com> 1403413129 +0800	commit: bootstrap.groovy plugin add :compile ":shiro:1.2.1"
679f8a186e124306fa0e5cb494da76af3d91944e f3469e862842a4b424cd35bfe1c3ec96c2db8623 wanderknight <wanderknight@gmail.com> 1403424254 +0800	commit: add shiro test & database connection
f3469e862842a4b424cd35bfe1c3ec96c2db8623 45a06438d4ecd4602bccdf10bb0c2a5c8951f633 wanderknight <wanderknight@gmail.com> 1403445814 +0800	commit: add register
45a06438d4ecd4602bccdf10bb0c2a5c8951f633 03afe373068e320e5a18fb53179a369e6c201d23 wanderknight <wanderknight@gmail.com> 1403580423 +0800	commit: clear css,and run grails install templates.
03afe373068e320e5a18fb53179a369e6c201d23 052a34a479c3216265f94c7d8061163b52400a18 wanderknight <wanderknight@gmail.com> 1403614377 +0800	commit: add foot, head and it's menu, fix the templates usedlib/src/templates/scaffolding/index.gsp table.
052a34a479c3216265f94c7d8061163b52400a18 de053e4db421fe9c45e8635ac14401d57ac99fd1 wanderknight <wanderknight@gmail.com> 1403621139 +0800	commit: fix templates/scaffolding/show.gsp.
de053e4db421fe9c45e8635ac14401d57ac99fd1 8b60eb14ac6e0a8cf88929c4270d82c3bbd2be18 wanderknight <wanderknight@gmail.com> 1403687093 +0800	commit: fix the templates 4 file and index to use bootstrap as css .
8b60eb14ac6e0a8cf88929c4270d82c3bbd2be18 494f8924a916bbda0fe78d96981f30bfa9a26f5e wanderknight <wanderknight@gmail.com> 1403747995 +0800	commit: create profile book friends domain and controller.
494f8924a916bbda0fe78d96981f30bfa9a26f5e 6e8269bf5a0c7748fa4beb00589f7f3f309e0e7c wanderknight <wanderknight@gmail.com> 1403784946 +0800	commit: use the bootstrap to fix css.
6e8269bf5a0c7748fa4beb00589f7f3f309e0e7c 4bd17d88fe506adf80239e645bc69841835ba973 wanderknight <wanderknight@gmail.com> 1403785486 +0800	commit: create all domain and controllers.
4bd17d88fe506adf80239e645bc69841835ba973 b8c7decd6298a94409e1d5311fb229302cd7c5fe wanderknight <wanderknight@gmail.com> 1403860340 +0800	commit: add the domain relation.1:n,1:1.
b8c7decd6298a94409e1d5311fb229302cd7c5fe b3ae95f08e08b36e396ae1494410078c275cb4af wanderknight <wanderknight@gmail.com> 1403949377 +0800	commit: fix the domain's property,ref the ref discuz database/install.sql.
b3ae95f08e08b36e396ae1494410078c275cb4af 028e412c236beb3e9bcdd417e86e3c2c67adbae6 wanderknight <wanderknight@gmail.com> 1403958360 +0800	commit: generate all Book.
028e412c236beb3e9bcdd417e86e3c2c67adbae6 a9b950a69a53c50e461584ce869604d56fe13796 wanderknight <wanderknight@gmail.com> 1403969285 +0800	commit: generate all book, when commit, forget to select all.
a9b950a69a53c50e461584ce869604d56fe13796 e965089386f39948db7ea8a39e515341137ceb0b wanderknight <wanderknight@gmail.com> 1404114595 +0800	commit: add search douban api book by isbn13, and add to book.
e965089386f39948db7ea8a39e515341137ceb0b c6c948311376962c70b0f68134acad3a167ab59f wanderknight <wanderknight@gmail.com> 1404136440 +0800	commit: add ownedbook in book/show.gsp. and use the session.
c6c948311376962c70b0f68134acad3a167ab59f 9be446088b86c4cedd53e720b1079a84985cf1b3 wanderknight <wanderknight@gmail.com> 1404173324 +0800	commit: add toString() for display well.
9be446088b86c4cedd53e720b1079a84985cf1b3 9bd124cc9e5afe350465fe77fb16fe9713e67c2f wanderknight <wanderknight@gmail.com> 1404259002 +0800	commit: generate all BorrowedBook.
9bd124cc9e5afe350465fe77fb16fe9713e67c2f fb25b51c8c25d44cc57ae35bf83a8fa4e7de1e90 wanderknight <wanderknight@gmail.com> 1404268856 +0800	commit: BorrowedBook first,borrow from the user id=3.
fb25b51c8c25d44cc57ae35bf83a8fa4e7de1e90 781c04a7bd498790b8af683f70107481a678861e wanderknight <wanderknight@gmail.com> 1404283731 +0800	commit: BorrowedBook first,borrow from the owner.
781c04a7bd498790b8af683f70107481a678861e d9b051560ea74b8a665471125f0db3b986aed69b wanderknight <wanderknight@gmail.com> 1404287903 +0800	commit: generate all shiroUser, and friends for add friends.
d9b051560ea74b8a665471125f0db3b986aed69b 8c7c140a163c2cc7ed5a85296d27691c611c68dc wanderknight <wanderknight@gmail.com> 1404288732 +0800	commit: add friend.
8c7c140a163c2cc7ed5a85296d27691c611c68dc 7dd9eceb6dd8786c07e603f154e3d9843ddb264d wanderknight <wanderknight@gmail.com> 1404289828 +0800	commit: add BorrowedBook.groovy toString.
7dd9eceb6dd8786c07e603f154e3d9843ddb264d dbbc9544219fc61d3727b6beebaedd6995f4506c wanderknight <wanderknight@gmail.com> 1404375710 +0800	commit: design the menu. and fix it.
dbbc9544219fc61d3727b6beebaedd6995f4506c 8f24ec8171b80195f8e3cde585ffd395527aefc1 wanderknight <wanderknight@gmail.com> 1404395389 +0800	commit: only list user related ownedbook.
8f24ec8171b80195f8e3cde585ffd395527aefc1 21e1eae1b9ffe63569fce2bcd8cd99ee4e47ea2d wanderknight <wanderknight@gmail.com> 1404399385 +0800	commit: user related Friends.
21e1eae1b9ffe63569fce2bcd8cd99ee4e47ea2d cbaf3513bf2034fb710dea9ceb91dbb23fc13086 wanderknight <wanderknight@gmail.com> 1405343583 +0800	commit: finish userindex.gsp. all info display.
cbaf3513bf2034fb710dea9ceb91dbb23fc13086 a2b61ca31f686e061dac7e5c7f499aaab0dfc7e9 wanderknight <wanderknight@gmail.com> 1405347317 +0800	commit: fix session.ShiroUserId to session.ShiroUser.id.
a2b61ca31f686e061dac7e5c7f499aaab0dfc7e9 1a4cf0ac9a6f03bf211e4bee6aaa4d8bc561057f wanderknight <wanderknight@gmail.com> 1405479332 +0800	commit: fix the dropdown menu for logined user. add the _sidebar.gsp for display user session info.
1a4cf0ac9a6f03bf211e4bee6aaa4d8bc561057f 0bac9baf2495757bab4bf75ca37e89c73fecae30 wanderknight <wanderknight@gmail.com> 1405519792 +0800	commit: relate profile to shiroUser,SignupController.groovy/register add the session. set the menu active state.
0bac9baf2495757bab4bf75ca37e89c73fecae30 7ff1330acd62aadc46451f5b3beb07837cd79f9f wanderknight <wanderknight@gmail.com> 1405585977 +0800	commit: create-all profile and add simple avatar.
7ff1330acd62aadc46451f5b3beb07837cd79f9f 49fd21d335159cfafc337ba188193594f5bd3153 wanderknight <wanderknight@gmail.com> 1406298345 +0800	commit: 1.add compile ":hd-image-utils:1.0" for avatar;
49fd21d335159cfafc337ba188193594f5bd3153 b9e5ebf121421963f6e23d56698fcc3499b237b5 wanderknight <wanderknight@gmail.com> 1406599691 +0800	commit: add gpsLongitude and gpsLatitude to ShiroUser.groovy. and shiroUser/index.gsp display nearby user.
b9e5ebf121421963f6e23d56698fcc3499b237b5 0824667e574c224de0012cd37495c90f8d2bab01 wanderknight <wanderknight@gmail.com> 1406726034 +0800	commit: BookController.groovy index show the book that nearby user owned .
0824667e574c224de0012cd37495c90f8d2bab01 52d293028496e155259c00e946e5bdef8f3e7657 wanderknight <wanderknight@gmail.com> 1406878190 +0800	commit: fix the user's profile and role user.addToRoles bug in SignupController.groovy register().
52d293028496e155259c00e946e5bdef8f3e7657 d603cfb87deee1dbb17cc4d5aaedf5a0434bc653 wanderknight <wanderknight@gmail.com> 1407138616 +0800	commit: to show the sql .
d603cfb87deee1dbb17cc4d5aaedf5a0434bc653 66bf1dc61d20ebfbd40ffd15f3a69effd594e255 wanderknight <wanderknight@gmail.com> 1407231759 +0800	commit: fix the ShiroUser.groovy property.
66bf1dc61d20ebfbd40ffd15f3a69effd594e255 83bb766fb2eb8f432cd27eb7ab56552bf2b67922 wanderknight <wanderknight@gmail.com> 1407311445 +0800	commit: fix the shiroUser/index.gsp from table to ul list for displaying more info.
83bb766fb2eb8f432cd27eb7ab56552bf2b67922 13b3c3b363032a1a31b5ecd257e1241c91c053bb wanderknight <wanderknight@gmail.com> 1407486156 +0800	commit: book/index.gsp add douban info by douban_api.js, fix the shiroUser/index.gsp label css.
13b3c3b363032a1a31b5ecd257e1241c91c053bb 6b6b8080e53ef0da4a094912899aec1ff6b47906 wanderknight <wanderknight@gmail.com> 1407486239 +0800	commit: BookController.groovy fix the search, add the key work search. change fastjson-1.1.34.jar to fastjson-1.1.36.jar.
6b6b8080e53ef0da4a094912899aec1ff6b47906 cc05b5143db52ea2ec368c95c8bbdac220965ca4 wanderknight <wanderknight@gmail.com> 1408003107 +0800	commit: fix the next page problem in BookController.groovy index action.
cc05b5143db52ea2ec368c95c8bbdac220965ca4 3156da6f48df06330a3bd8315722f066fdc6bb2e wanderknight <wanderknight@gmail.com> 1408003160 +0800	commit: search book form move to navbar.
3156da6f48df06330a3bd8315722f066fdc6bb2e 19b38892d9509cf213f371cd27e8179fd5b3aa92 wanderknight <wanderknight@gmail.com> 1408003836 +0800	commit: delete the auto-created "Skip to content" etc content.
19b38892d9509cf213f371cd27e8179fd5b3aa92 e3dca248eaf5f4bd8b0736f9ed540e4013459ba2 wanderknight <wanderknight@gmail.com> 1408005013 +0800	commit: delete the auto-created <h1> title.
e3dca248eaf5f4bd8b0736f9ed540e4013459ba2 b71bd0662f8e431428576c3f0fcc9b7e2170d390 wanderknight <wanderknight@gmail.com> 1408091090 +0800	commit: show the short title.
b71bd0662f8e431428576c3f0fcc9b7e2170d390 bb7d24acdc5981e1bdd8c830197fb3bee1da9867 wanderknight <wanderknight@gmail.com> 1408503404 +0800	commit: move gps from ShiroUser.groovy to Profile.groovy
bb7d24acdc5981e1bdd8c830197fb3bee1da9867 a7b71b2f38dd31c1e042ad4d20a629d7dfa7250f wanderknight <wanderknight@gmail.com> 1408503531 +0800	commit: merge avatar.gsp to profile update action.
a7b71b2f38dd31c1e042ad4d20a629d7dfa7250f fbdc72d7a64aa627478c70403d130360b45d0e5e wanderknight <wanderknight@gmail.com> 1408541330 +0800	commit: show image in shiroUser/index.gsp and sidebar.
fbdc72d7a64aa627478c70403d130360b45d0e5e 12ce4fbb31a7529f399ad93a5c16e73a214e609a wanderknight <wanderknight@gmail.com> 1408588489 +0800	commit: session OwnedBookCount,borrowedBookCount,lendedBookCount change to user.numOwnedBook,user.numBorrowedBook,user.numLendedBook
12ce4fbb31a7529f399ad93a5c16e73a214e609a d5f7a10806060d2fa39db10ca223f15f904e2b4c wanderknight <wanderknight@gmail.com> 1408691264 +0800	commit: fix book/show.gsp,and others
d5f7a10806060d2fa39db10ca223f15f904e2b4c 79d09de15c8763f29c1d0f512f7e6904c4804f2c wanderknight <wanderknight@gmail.com> 1408944688 +0800	commit: fix profile/edit.gsp and ProfileController.groovy edit action
79d09de15c8763f29c1d0f512f7e6904c4804f2c fca39a1c9363db8a9110525d86d3c5993a94a107 wanderknight <wanderknight@gmail.com> 1408971005 +0800	commit: fix owned book display in shiroUser/show.gsp.
fca39a1c9363db8a9110525d86d3c5993a94a107 01b68289122cd5b4fccc8b46eb897132e593a7e8 wanderknight <wanderknight@gmail.com> 1408971179 +0800	commit: fix the BookController.groovy list action, database query according the location and others.
01b68289122cd5b4fccc8b46eb897132e593a7e8 a279694cd37fac473a3cc442188410233bd7786f wanderknight <wanderknight@gmail.com> 1409065237 +0800	commit: perfect the BookController.groovy list action.
a279694cd37fac473a3cc442188410233bd7786f 0f4c01d476f17d503554e080ffa667273bd82732 wanderknight <wanderknight@gmail.com> 1409126310 +0800	commit: book/show.gsp fix the user Link error.
0f4c01d476f17d503554e080ffa667273bd82732 fa2f2fbbc996bef1018fd2e34d369a6590b9eae6 wanderknight <wanderknight@gmail.com> 1409126380 +0800	commit: finish the OwnedBookController.groovy action index.
fa2f2fbbc996bef1018fd2e34d369a6590b9eae6 1b717748bc61e8f4197279e3eaf3420283171dbc wanderknight <wanderknight@gmail.com> 1409126405 +0800	commit: finish the friends/index.gsp.
1b717748bc61e8f4197279e3eaf3420283171dbc 3eebc474d644ea4e4fd8e188a17c51e48d8986ef wanderknight <wanderknight@gmail.com> 1409132170 +0800	commit: friends/index.gsp
3eebc474d644ea4e4fd8e188a17c51e48d8986ef 21958cd58be22c143aa75d036f0536765fd9d10a wanderknight <wanderknight@gmail.com> 1409303362 +0800	commit: borrowedBook/index.gsp fix
21958cd58be22c143aa75d036f0536765fd9d10a 3bf30ddd5d647c1aa831f893b34428e083f06252 wanderknight <wanderknight@gmail.com> 1409304664 +0800	commit: simplify the shiroUser/show.gsp.
3bf30ddd5d647c1aa831f893b34428e083f06252 30d883e5bb786f56083b4de6e173016982ac46df wanderknight <wanderknight@gmail.com> 1409556885 +0800	commit: borrowedBook/index.gsp display lend or borrow book.
30d883e5bb786f56083b4de6e173016982ac46df efc53dfb5e8d8b887c66ea00dd8aeb52f44fc121 wanderknight <wanderknight@gmail.com> 1409559533 +0800	commit: fix the BookController.groovy findAllByBook count problem.
efc53dfb5e8d8b887c66ea00dd8aeb52f44fc121 76de7e7fff74b2f54c1ea8803083a0c97dfdf004 wanderknight <wanderknight@gmail.com> 1409560067 +0800	commit: fix the FriendsController.groovy index count.
76de7e7fff74b2f54c1ea8803083a0c97dfdf004 946e342d9a604145d162bb012cc007f626d4bdbc wanderknight <wanderknight@gmail.com> 1409560183 +0800	commit: fix the OwnedBookController.groovy index count problem.
946e342d9a604145d162bb012cc007f626d4bdbc c34ecd753373c20232eb35e15d5374b41386f18f wanderknight <wanderknight@gmail.com> 1409560563 +0800	commit: fix the BorrowedBookController.groovy save redirect.
c34ecd753373c20232eb35e15d5374b41386f18f a29941d3037023fb842804e43d9ffb3f2956da62 wanderknight <wanderknight@gmail.com> 1409618914 +0800	commit: ownedBook/index.gsp fix the book link to show book.and other little fix.
a29941d3037023fb842804e43d9ffb3f2956da62 fa8eb6b1fe1a3d696f1ea73c89b1de347015e2d4 wanderknight <wanderknight@gmail.com> 1409620876 +0800	commit: generate-all messages,and when create borrowedBook, meanwhile create a message.
fa8eb6b1fe1a3d696f1ea73c89b1de347015e2d4 55ee205ea29aad6f008f8eddb22c48bf534c31e9 wanderknight <wanderknight@gmail.com> 1409625947 +0800	commit: add the message unread statue function,and clear unread statue.
55ee205ea29aad6f008f8eddb22c48bf534c31e9 80f57da52ebe2a68b1abefb1ec5dc4182496170e wanderknight <wanderknight@gmail.com> 1409668809 +0800	commit: fix i18n/messages.properties and i18n/messages_zh_CN.properties.
80f57da52ebe2a68b1abefb1ec5dc4182496170e a056134f2cec2272d35c83528c7df5800a83a473 wanderknight <wanderknight@gmail.com> 1409668955 +0800	commit: generate all message
a056134f2cec2272d35c83528c7df5800a83a473 8f4b8db6789527c65c373b4dd0d0034cd4d72967 wanderknight <wanderknight@gmail.com> 1409731996 +0800	commit: fix the message some bug.
8f4b8db6789527c65c373b4dd0d0034cd4d72967 420ffdecd9863af6dfd88f17adb7e08d5139c64c wanderknight <wanderknight@gmail.com> 1410442276 +0800	commit: add the ajax by render template: 'findBook', and add the book search toolbar.
420ffdecd9863af6dfd88f17adb7e08d5139c64c 5594dfcf30db3e9d1cc93d63c373941d8fbfec7f wanderknight <wanderknight@gmail.com> 1411368208 +0800	commit: complete the add friends request.
book search and add to personal ownedbook meanwhile add to book if this book not exist.