摘要: Before we come to the story of Struts2, let's first look at what MVC is. Model - The lowest level of the pattern which is responsible for maintaining 阅读全文
posted @ 2019-05-19 17:03 CodingYM 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Firstly, we need to understand what "One to One mapping" is Suppose we have two tables Table A and Table B if each row in Table A is linked to each ro 阅读全文
posted @ 2019-05-17 16:00 CodingYM 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1. hbm2ddl.auto property it will have four values "Create": Every time you run your hibernate application to insert, hibernate will drop off existing 阅读全文
posted @ 2019-05-17 10:23 CodingYM 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 1. What is Hibernate Simply said hibernate is a ORM framework, where ORM stands for Object (Java) - Relational (DB) mapping, Hibernate is developed ba 阅读全文
posted @ 2019-05-17 00:45 CodingYM 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Based on previous example, I have made a few enhancements. 1. I have used class actor (JavaBean) as parameter for search, delete and insert method. As 阅读全文
posted @ 2019-05-16 00:38 CodingYM 阅读(206) 评论(0) 推荐(0) 编辑
摘要: A regular expression is a special string that describes a search pattern. It is a powerful tool that gives us a concise and flexible strings of text e 阅读全文
posted @ 2019-05-15 16:11 CodingYM 阅读(358) 评论(0) 推荐(0) 编辑
摘要: Through previous practice, we have successfully connected our application to the Database using JDBC. But allowing user and application to connect to 阅读全文
posted @ 2019-05-14 22:47 CodingYM 阅读(116) 评论(0) 推荐(0) 编辑
摘要: In previous blog, we have written on how to connect to DB using JDBC, but in that example, we have hard-coded our DB setting in the variables in the c 阅读全文
posted @ 2019-05-11 23:20 CodingYM 阅读(247) 评论(0) 推荐(0) 编辑
摘要: InterfacesRecommended Use Statement Use this for general-purpose access to your database. Useful when you are using static SQL statements at runtime. 阅读全文
posted @ 2019-05-10 23:21 CodingYM 阅读(107) 评论(0) 推荐(0) 编辑
摘要: JDBC stands for Java Database Connectivity JDBC API is a Java API that can access any kind of tabular data, especially data stored in a Relational Dat 阅读全文
posted @ 2019-05-10 22:49 CodingYM 阅读(166) 评论(0) 推荐(0) 编辑