Skip to content

Skapar Booking entity#5

Closed
dinbah18 wants to merge 5 commits intomainfrom
feature/entities-booking-dino
Closed

Skapar Booking entity#5
dinbah18 wants to merge 5 commits intomainfrom
feature/entities-booking-dino

Conversation

@dinbah18
Copy link

@dinbah18 dinbah18 commented Dec 17, 2025

Lägger till Booking-entity med enkla fält.
Inga relationer än.

Summary by CodeRabbit

  • Chores

    • Added Docker support for containerized application deployment
    • Configured MySQL database service via Docker Compose for local development
    • Enhanced environment configuration management
  • Documentation

    • Updated README with assignment tracking information

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Dec 17, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This pull request establishes foundational infrastructure for a Java booking application with database support. It introduces Docker and Docker Compose configurations for containerization and MySQL services, defines a new Booking JPA entity, configures Jakarta Persistence settings, adds a Dockerfile for Java runtime, updates .gitignore, and adds a README badge.

Changes

Cohort / File(s) Summary
Infrastructure & Configuration
Dockerfile, docker-compose.yaml, .gitignore
Adds Docker containerization using eclipse-temurin:21-jdk as base image and defines a MySQL 9.5.0 service with persistent volume. Updates .gitignore to exclude .env files.
JPA & Database Layer
src/main/java/org/example/entities/Booking.java, src/main/resources/META-INF/persistence.xml
Introduces new Booking JPA entity with id, restaurantId, customerId, tableId, bookingStart, and bookingEnd fields; configures Jakarta Persistence unit for Hibernate with MySQL JDBC connection and schema auto-update enabled.
Documentation
README.md
Adds "Review Assignment Due Date" badge/link at the top of the file.
Repository History
dfg
Contains commit history including deadline addition, JPA setup configuration, mockito dependency bump (5.20.0 → 5.21.0), and initial commit record.

Estimated Code Review Effort

🎯 2 (Simple) | ⏱️ ~15 minutes

  • Verify MySQL credentials in docker-compose.yaml align with persistence.xml JDBC configuration (localhost:3306, user: root, password: rootpassword)
  • Confirm Booking entity JPA annotations (@Entity, @Table, @Id, @GeneratedValue) are correctly applied for the mapping
  • Validate Dockerfile Java version (21) and App.java entrypoint are appropriate for project requirements

Poem

🐰 A booking system takes its shape,
With Docker's walls and MySQL's cape,
The Booking class, so fresh and new,
Awaits the data it will chew,
Infrastructure built, the stage is set! 🎪

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8794408 and 8edaa27.

📒 Files selected for processing (7)
  • .gitignore (1 hunks)
  • Dockerfile (1 hunks)
  • README.md (1 hunks)
  • dfg (1 hunks)
  • docker-compose.yaml (1 hunks)
  • src/main/java/org/example/entities/Booking.java (1 hunks)
  • src/main/resources/META-INF/persistence.xml (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dinbah18 dinbah18 closed this Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants