2.3 Hibernate
Hibernate is an open source lightweight ORM
framework, which is responsible for object
relationship mapping in the DAO layer of the overall
application architecture. — JDBC, the method of
JAVA program operating database, is encapsulated.
In this way, developers only need to simply
configure hibernate when configuring the operation
functions of adding, deleting and checking the
database, which further improves the development
efficiency of the system. Hibernate has five core
interfaces. Hibernate's startup method reads the
Hibernate Configuration file through the
configuration interface, and in this process, the
SessionFactory object will be generated. Hibernate
initialization is the responsibility of sessionFactory
interface. The application needs to implement the
session interface when operating data objects, such
as load () loading method, save () saving method,
update () updating method and delete () deleting
method, which is the core functional interface of
hibernate. Query interface can implement a series of
queries of persistent objects. Transaction is
responsible for managing all transactions and
encapsulating the faulty operation of the underlying
code in time. (Huang, 2019)
2.4 Development Environment
In this part, the related technologies developed and
used in the online teaching platform of computer
application are briefly introduced. This system is
developed based on the framework of Structs
2.3+Spring Framework 5.3.2+Hibernate 5.3. The
development environment is myeclipse9.0, the
relational database is MySQL 8.0.28, and Navicat
for MySQL is used to visualize the database. Choose
Apache Tomcat 9.0 for server deployment.
First, open myeclipse and create a new Web
Project project. Select jdk version 1.8, Tomcat
version tomcat9, next–> next check the web.xml
configuration file, and finish. Then you need to
import the Jar package, import all the Jar packages
into the lib folder, and then open the web.xml to
configure Spring and Struts. Then, by configuring
the application-Context.xml file, the transaction
processor and configuration file of Hibernate are
built. The last step is to configure JDBC as MySQL-
connector-Java-bin.jar. At this point, the complete
SSH framework has been built. The choice of
system architecture and key implementation
technologies is very important. According to the
analysis of relevant technologies in the current era,
the author believes that it is technically feasible to
build an online teaching system for computer
applications based on the above technologies. (Gao,
2018)
3 REQUIREMENT ANALYSIS
3.1 Functional Requirements
In the flipped classroom mode, the online teaching
system of computer application sets up two kinds of
user ports: student client and teacher client. The
function of the application system is divided into
five main functional modules, including personal
information management, teaching resource
database, online courses, homework after class and
interactive question and answer. For the student
client, after logging in to the system, students can
choose carefully needed courses from the online
course library according to their needs, and add them
to their personal collections for study. The teaching
resource library can choose digital teaching
resources such as text, code and various
experimental packages, from which students can
choose to download. When students have finished
their studies, they can click to enter the homework
module, check the homework assigned by teachers
in each course and complete the submission within
the specified time limit. When students encounter
problems in their study, they can ask for help from
teachers through the interactive question-answering
module in the system. Teachers need to log in their
employee number and corresponding password
when logging in. Click on the teaching resource
database, and teachers also have the function of
selecting courses and adding new courses to the
online course database. They can add, delete, modify
and query all kinds of resources in the online courses
and teaching resource database. Teachers can check
the completion of students' after-school homework
through the after-school homework module, and
make corrections and evaluation.
3.2 Overall Design
The computer online teaching system is an
enterprise application, so it is developed with J2EE
mode and B/S architecture. The overall design
diagram of the system is shown in Figure 2. The
system adopts hierarchical architecture, which is
divided into three parts: view display layer, business
logic layer and data persistence layer. The view
display layer includes javabean, action and