{"id":26188232,"url":"https://github.com/rohitswami16/jdbc-crud-system","last_synced_at":"2026-02-13T01:07:55.584Z","repository":{"id":270122447,"uuid":"909399627","full_name":"Rohitswami16/JDBC-CRUD-System","owner":"Rohitswami16","description":"The JDBC-CRUD-System is a Java-based desktop application that demonstrates the implementation of CRUD (Create, Read, Update, Delete) operations using JDBC (Java Database Connectivity). This system is designed for managing employee records and includes a user-friendly GUI built with JFrame. ","archived":false,"fork":false,"pushed_at":"2025-02-20T08:53:02.000Z","size":266,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T01:07:39.616Z","etag":null,"topics":["crud-application","crud-functionality","java","javaguiswing","javaswing","jdbc","jdbc-driver","jframe","mysql","mysql-workbench"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rohitswami16.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-28T15:35:17.000Z","updated_at":"2025-02-20T08:53:05.000Z","dependencies_parsed_at":"2025-04-15T01:01:20.329Z","dependency_job_id":"52e73821-a592-429f-8d69-180fdf833963","html_url":"https://github.com/Rohitswami16/JDBC-CRUD-System","commit_stats":null,"previous_names":["rohitswami16/jdbc-crud-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rohitswami16/JDBC-CRUD-System","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohitswami16%2FJDBC-CRUD-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohitswami16%2FJDBC-CRUD-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohitswami16%2FJDBC-CRUD-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohitswami16%2FJDBC-CRUD-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rohitswami16","download_url":"https://codeload.github.com/Rohitswami16/JDBC-CRUD-System/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohitswami16%2FJDBC-CRUD-System/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29390989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T00:53:09.511Z","status":"ssl_error","status_checked_at":"2026-02-13T00:53:09.126Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crud-application","crud-functionality","java","javaguiswing","javaswing","jdbc","jdbc-driver","jframe","mysql","mysql-workbench"],"created_at":"2025-03-11T23:57:39.367Z","updated_at":"2026-02-13T01:07:55.562Z","avatar_url":"https://github.com/Rohitswami16.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JDBC-CRUD-System\n\n## 📜 Project Overview\n\nThe **JDBC-CRUD-System** is a Java-based desktop application that demonstrates the implementation of CRUD (Create, Read, Update, Delete) operations using **JDBC** (Java Database Connectivity). This system is designed for managing employee records and includes a user-friendly **GUI** built with **JFrame**. The application allows users to perform operations such as viewing, adding, updating, and removing employee records.\n\n---\n\n## ✨ Key Features\n\n### Home Page\n- The central interface with five buttons to navigate through the system:\n  - **View Employees**: Displays all employee records, including employee ID, name, salary, email, phone number, and address.\n  - **View by ID**: Allows the user to search for and display a specific employee's details by their ID.\n  - **Add Employee**: Allows adding new employee records into the system with validation to prevent duplicate entries.\n  - **Remove Employee**: Removes an employee record using their ID.\n  - **Update Employee**: Updates details (such as name, salary, email, etc.) of an existing employee.\n  \n### Exception Handling\n- Provides meaningful messages when operations fail (e.g., \"No such employee present,\" \"Duplicate entry not allowed\").\n\n---\n\n## 🛠️ Technologies Used\n\n- **Programming Language**: Java\n- **Database**: MySQL (or any JDBC-compatible database)\n- **GUI Framework**: JFrame\n- **JDBC**: For database connectivity and operations\n\n---\n\n## 📂 Project Structure\n\nJDBC-CRUD-System/\n├── JRE System Library/                  \n├── src/                                 \n│   ├── JDBC_CRUD_OPERATIONS/           \n│   │   ├── AddEmployeeFrame.java                \n│   │   ├── EmployeeDetails.java             \n│   │   ├── RemoveEmployeeFrame.java             \n│   │   ├── HomePage.java  \n│   │   ├── UpdateEmployeeFrame.java   \n│   │   ├── ViewByIdFrame.java                         \n├── Referenced Libraries/                \n│   └── mysql-connector-java.jar        \n├── README.md                            \n\n\n---\n\n## 📄 Database Schema\n\nTo set up the database, execute the following SQL script:\n\n```sql\nCREATE DATABASE EmployeeDB;\nUSE EmployeeDB;\n\nCREATE TABLE employees (\n    id INT PRIMARY KEY AUTO_INCREMENT,\n    name VARCHAR(50) NOT NULL,\n    position VARCHAR(50),\n    salary DECIMAL(10, 2),\n    email VARCHAR(100),\n    phone VARCHAR(20),\n    address VARCHAR(200)\n);\n```\n\n--- \n\n## 🚀 How to Run the Project\n\n### 📥 Clone the Repository\nTo clone the repository, run the following commands in your terminal:\nbash\ngit clone https://github.com/Rohitswami16/JDBC-CRUD-System.git\ncd JDBC-CRUD-System\n\n### 🔧 Set Up the Database\nInstall MySQL or any JDBC-compatible database.\nExecute the SQL script in db-scripts/schema.sql to create the necessary database and table.\n### 🔧 Configure Database Connection\nEdit the application.properties file in the resources folder to specify your database credentials:\ndb.url=jdbc:mysql://localhost:3306/EmployeeDB\ndb.user=root\ndb.password=password\n\n### ▶️ Run the Application\n1. Open the project in your IDE (e.g., Eclipse or IntelliJ IDEA).\n2. Add the JDBC driver (mysql-connector-java.jar) to the classpath.\n3. Run the Main.java file to start the application.\n\n---\n\n🕹️ Functionality of Buttons\n### View Employees\nDisplays all employees in the database with their details such as ID, name, salary, email, phone, and address.\n### Add Employee\nPrompts the user to enter employee details (name, position, salary, email, phone, address).\nIf a duplicate entry (e.g., same name or email) is detected, a message \"Duplicate entry not allowed\" will be displayed.\n### View by ID\nPrompts the user to enter an employee's ID.\nIf the employee exists, their details will be displayed.\nIf not, a message \"Employee doesn't exist\" will be shown.\n### Remove Employee\nPrompts the user to enter an employee's ID.\nThe corresponding record will be removed from the database.\nIf the employee doesn't exist, a message \"Employee not found\" will be displayed.\n### Update Employee\nPrompts the user to enter an employee's ID.\nIf the employee exists, their details will be displayed.\nThe user can then update fields like name, position, salary, email, phone, and address.\n\n## 📸 Screenshots\n\n# Employee Management System\n\n## Home \u0026 Employee Details\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://github.com/user-attachments/assets/1891e088-a7cb-4fcd-8083-5b84fb546136\" width=\"400\"\u003e\u003cbr\u003e\u003cb\u003eHome\u003c/b\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://github.com/user-attachments/assets/38567982-47f5-4e86-acaa-25d1e474515c\" width=\"400\"\u003e\u003cbr\u003e\u003cb\u003eEmployee Details\u003c/b\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Add New Employee \u0026 View by Employee ID\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://github.com/user-attachments/assets/09bbacf5-0ab8-4bfd-ad4c-2d72b4ad5086\" width=\"400\"\u003e\u003cbr\u003e\u003cb\u003eAdd New Employee\u003c/b\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://github.com/user-attachments/assets/8b74ebec-3a6f-4584-8e5f-a249027a4c59\" width=\"400\"\u003e\u003cbr\u003e\u003cb\u003eView by Employee ID\u003c/b\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Update Employee Details \u0026 Remove Employee Details\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://github.com/user-attachments/assets/a3e1672f-22db-45cc-b3e6-15aefe52824f\" width=\"400\"\u003e\u003cbr\u003e\u003cb\u003eUpdate Employee Details\u003c/b\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003cimg src=\"https://github.com/user-attachments/assets/4091cdc0-35b6-4a98-9018-cd5b3060b867\" width=\"400\"\u003e\u003cbr\u003e\u003cb\u003eRemove Employee Details\u003c/b\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## 🚀 Future Enhancements\nAdd role-based authentication for secure access.\nImplement advanced search and filtering options.\nEnhance the GUI with modern UI frameworks like JavaFX.\nSupport for exporting employee data to Excel or PDF.\n## 📜 License\nThis project is open-source and available under the MIT License. Feel free to contribute to this project by submitting issues or pull requests!\n\n## 📧 Contact\nFor any questions or issues, please contact:\n\n🔗 LinkedIn: [LinkedIn](https://www.linkedin.com/in/rohit-swami16/)\n\n🐙 GitHub: [Rohitswami16](https://github.com/Rohitswami16)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohitswami16%2Fjdbc-crud-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohitswami16%2Fjdbc-crud-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohitswami16%2Fjdbc-crud-system/lists"}