The past three articals is the fundamental of this one.
Today I will finish the Model.
Section1:
Finish the development of the data background.
(1) compile the VO class. (Admin.java class)
New a new package cn.ylcto.vo in the src folder .
New a class Admin in this package and choose to add the serializable interface into the class.
Return the navicat and see the content in the table.
The JDBC setting https://blog.csdn.net/wangxixuan0008/article/details/96643129
There will be an error when code the mode of the “lastdate”—Date. You should import the package java.util.date.
(2)Generate the getter and setter method for the class Admin
right click and choose the “source - generate the getter() and setter()”
select all and click the “Generate”
Section2.
Write a database link operation class.
(DatabaseConnection.java)
Section3.
generate the public DAO interface.
eg. The IDAO.java
Section4.
generate the data interface.
eg.IAdminDAO.java
Section5.
compile the exact implementation subclass.
eg. AdminDAOImpl.java
Section6.
comile the data factory class
eg.DAOFactory.java
汇编,编写 compile
实现,履行 implementation
子类 subclass