Giter VIP home page Giter VIP logo

employeeoperation's Introduction

EmployeeOperation

This is a simple project about employee information CRUD operation, you can switch database access manner easily: hibernate or directly SQL. The information contains id, first name, last name and department. id is primary key, and auto increment, can't be modified.

Project directory: ----WebContent: including webpage(jsp file) and lib file. ----src: --------config: config file used for directly SQL access. --------controller: servlet file which communicate with webpage, handle web request. --------DAO: encapsulate all the operations of database, including hibernate and directly SQL --------entities: schema for data. --------util: utility files for database connection.

Framework: Servlet + hibernate + MySQL + JSP + Tomcat

Deploy Process: 1: create database database name: employee table name: employee

    SQL Script is following:

            CREATE DATABASE `employee` /*!40100 DEFAULT CHARACTER SET utf8 */;

            CREATE TABLE `employee` (
              `ID` int(4) NOT NULL AUTO_INCREMENT,
              `first_name` varchar(45) DEFAULT NULL,
              `last_name` varchar(45) DEFAULT NULL,
              `department` varchar(45) DEFAULT NULL,
              PRIMARY KEY (`ID`)) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;

2: modify the configuration file

src/hibernate.cfg.xml: change database username and password.
src/com/config/default.properties: change db_username and db_password.

3: run in the eclipse.

employeeoperation's People

Contributors

sunmoo avatar song2015 avatar

Watchers

 avatar

Forkers

jifengjiang11

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.