- Introduction
- Features
- Technologies Used
- Architecture
- Getting Started
- CRUD Operations
- Cascade Types
- Viewing Student Details for Room Reservations
- License
- Contact
The D24 Hostel Student Registration and Room Management System is designed to streamline the process of registering students for hostel accommodation and managing room reservations. This system eliminates manual record-keeping, enhances data accuracy, and provides a user-friendly interface for both administrators and students.
- Create, read, update, and delete (CRUD) operations for students and rooms.
- Cascade types to manage related entities efficiently.
- View student details associated with room reservations.
- Secure and scalable web-based or mobile application.
- Java
- JavaFX
- MySQL
- Hibernate
The system follows a layered architecture consisting of the following layers:
- Presentation Layer (JavaFX UI)
- Application Layer (Business Logic)
- Persistence Layer (Database Interaction)
- Clone the Repository: Clone the repository to your local machine using Git.
git clone https://github.com/yourusername/d24-hostel-management.git
- Database Setup:
- Create a MySQL database for the application.
- Configure the Hibernate configuration file (
hibernate.cfg.xml
) with the appropriate database connection details.
- Build the Project: Build the project using your preferred Java build tool (e.g., Gradle or Maven).
- Example for Gradle
./gradlew build
- Run the Application: Start the application to launch the user interface.
- Example for Gradle
./gradlew run
-
Launch the application.
-
You will be presented with a login screen.
-
Admin User:
- Username:
admin
- Password:
adminpassword
- Username:
-
After logging in, you will be directed to the dashboard.
-
Admin Dashboard:
- Admin users have access to the following features:
- Manage Students: Add, edit, and delete student records.
- Manage Rooms: Add, edit, and delete room records.
- View Student Details: Click on a room reservation to view the student's details.
- Admin users have access to the following features:
- Admin Users:
- Click on the "Manage Students" option in the dashboard.
- Add a new student:
- Fill in the student's details.
- Click the "Add" button.
- Edit a student's details:
- Select a student from the list.
- Click the "Edit" button.
- Update the details.
- Click the "Save" button.
- Delete a student:
- Select a student from the list.
- Click the "Delete" button.
- Admin Users:
- Click on the "Manage Rooms" option in the dashboard.
- Add a new room:
- Fill in the room details.
- Click the "Add" button.
- Edit a room's details:
- Select a room from the list.
- Click the "Edit" button.
- Update the details.
- Click the "Save" button.
- Delete a room:
- Select a room from the list.
- Click the "Delete" button.
- Admin Users:
- Click on a room reservation in the dashboard to view the student's details.
- To logout, simply close the application or use the provided logout option.
- Create: Add new student records with personal details, campus student ID, and registration information.
- Read: Retrieve and display student details, including room reservations.
- Update: Modify student information, contact details, and registration details.
- Delete: Remove student records from the system.
- Create: Add new rooms with details such as room type, availability status, and room number.
- Read: View room details, check availability, and see student reservations.
- Update: Update room information, including availability status and room type.
- Delete: Remove rooms from the system when necessary.
- CascadeType.REMOVE: When a student record is deleted, associated room reservations are also removed.
- CascadeType.MERGE: Updating a student's information also updates related room reservation records.
- CascadeType.PERSIST: Creating a new student and room reservation ensures both records are saved.
- Authorized users can view student details associated with specific room reservations.
[Specify the project's license and include any necessary disclaimers or notices.]
You can contact me via:
-
Email : [email protected]
-
LinkedIn : https://linkedin.com/in/dewmith-mihisara-67861a202
-
Twitter : https://twitter.com/Zyne_Galata