(2)创建映射文件
映射文件:storealert.hbm.xml
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/a83e16ea6f986f7ececd5f1299fd77a5.png)
(3)数据访问层实现
在IStoredetailDao和StoredetailDao中加入方法与实践
1)IStoredetailDao
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/5750a7209e4335619a47325182bf6897.png)
2)IStoredetailDao
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/3b040b512d564bfff96c001eb6a9b660.png)
(4)业务逻辑层实现
在IStoredetailBiz和StoredetailBiz中添加方法与实现
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/0179a67d2f32356ac1cbb1799721a063.png)
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/11cc9297ffd4126c80c017d78ec2f540.png)
(5)Action层的实现
在StoredetailAction中加入方法:
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/dc4fc9711b46c1bf40916080e1cb1acd.png)
(6)页面代码
1)添加js/storealert.js
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/925e26864a52c3137c77bc921418d6a3.png)
2)添加storealert.html文件