Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
<version>7.2.0.Final</version>
</dependency>
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>9.5.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.github.classgraph</groupId>
<artifactId>classgraph</artifactId>
<version>4.8.184</version>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
<version>7.2.0.Final</version>
</dependency>
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>9.5.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.github.classgraph</groupId>
<artifactId>classgraph</artifactId>
<version>4.8.184</version>
</dependency>
</dependencies>
</project>
52 changes: 51 additions & 1 deletion src/main/java/org/example/App.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,57 @@
package org.example;

import jakarta.persistence.EntityManager;
import jakarta.persistence.EntityManagerFactory;
import jakarta.persistence.Persistence;

public class App {
public static void main(String[] args) {
System.out.println("Hello There!");
EntityManagerFactory emf = Persistence.createEntityManagerFactory("carRentalPU");
EntityManager em = emf.createEntityManager();

em.getTransaction().begin();

// Rensa tabellen innan vi lägger in nya bilar
em.createQuery("DELETE FROM Car").executeUpdate();

// Skapa och persist 20 bilar med rimliga dagspriser
em.persist(createCar("Volvo", "XC90", 2025, "Lyxbil", 800_000));
em.persist(createCar("BMW", "7 Series", 2024, "Lyxbil", 1_000_000));
em.persist(createCar("Audi", "A8", 2023, "Lyxbil", 900_000));
em.persist(createCar("Toyota", "Corolla", 2022, "Personbil", 200_000));
em.persist(createCar("Honda", "Civic", 2021, "Personbil", 190_000));
em.persist(createCar("Ford", "Focus", 2022, "Personbil", 210_000));
em.persist(createCar("Mercedes", "Sprinter", 2023, "Minibuss", 350_000));
em.persist(createCar("Volkswagen", "Transporter", 2023, "Minibuss", 330_000));
em.persist(createCar("Renault", "Kangoo", 2022, "Minibuss", 300_000));
em.persist(createCar("Fiat", "500", 2023, "Småbil", 120_000));
em.persist(createCar("Mini", "Cooper", 2022, "Småbil", 150_000));
em.persist(createCar("Volkswagen", "Up!", 2022, "Småbil", 110_000));
em.persist(createCar("Porsche", "911", 2025, "Sportbil", 1_500_000));
em.persist(createCar("Ferrari", "Roma", 2024, "Sportbil", 2_000_000));
em.persist(createCar("Lamborghini", "Huracan", 2025, "Sportbil", 2_500_000));
em.persist(createCar("Tesla", "Model S", 2023, "Lyxbil", 900_000));
em.persist(createCar("Kia", "Rio", 2022, "Småbil", 130_000));
em.persist(createCar("Hyundai", "i30", 2023, "Personbil", 195_000));
em.persist(createCar("Opel", "Vivaro", 2022, "Minibuss", 320_000));
em.persist(createCar("Jaguar", "F-Type", 2024, "Sportbil", 1_600_000));

em.getTransaction().commit();
em.close();
emf.close();

System.out.println("20 cars saved successfully!");
}

// Skapar bil och sätter dagspris till 0,5% av priset
private static Car createCar(String brand, String model, int year, String type, double price) {
Car car = new Car;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Fix syntax error: missing parentheses in constructor call.

Line 48 has a syntax error that causes compilation to fail. The constructor call is missing parentheses.

🔎 Apply this fix
-        Car car = new Car;
+        Car car = new Car();
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Car car = new Car;
Car car = new Car();
🧰 Tools
🪛 GitHub Actions: Java Maven Build

[error] 48-48: Compilation error: '(' or '[' expected.

🤖 Prompt for AI Agents
In src/main/java/org/example/App.java around line 48, the constructor call "Car
car = new Car;" is missing the required parentheses which causes a
syntax/compilation error; update the statement to call the constructor with
parentheses (e.g., new Car()) and ensure any required imports or parameters are
supplied if the Car constructor expects arguments.

car.setBrand(brand);
car.setModel(model);
car.setYear(year);
car.setType(type);
car.setPrice(price);
car.setDailyPrice(price * 0.005); // 0,5% av totalpris
return car;
}
Comment on lines +47 to 56

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check if Car import exists in App.java
echo "=== Checking for Car import in App.java ==="
if [ -f "src/main/java/org/example/App.java" ]; then
  rg -n "^import.*Car" src/main/java/org/example/App.java || echo "No Car import found"
else
  echo "App.java not found at src/main/java/org/example/App.java"
fi

# Check Car.java package
echo -e "\n=== Checking Car.java package ==="
if [ -f "src/main/java/org/example/model/Car.java" ]; then
  rg -n "^package" src/main/java/org/example/model/Car.java
elif [ -f "src/main/java/org/example/Car.java" ]; then
  rg -n "^package" src/main/java/org/example/Car.java
else
  # Try to find Car.java anywhere
  find src -name "Car.java" -type f -exec echo "Found: {}" \; -exec head -1 {} \;
fi

Repository: ithsjava25/project-jpa-grupp-7-g

Length of output: 197


Fix missing parentheses in constructor call.

Line 48: new Car; should be new Car(); - constructor calls in Java require parentheses.

    private static Car createCar(String brand, String model, int year, String type, double price) {
        Car car = new Car();
        car.setBrand(brand);
        car.setModel(model);
        car.setYear(year);
        car.setType(type);
        car.setPrice(price);
        car.setDailyPrice(price * 0.005); // 0,5% av totalpris
        return car;
    }
🧰 Tools
🪛 GitHub Actions: Java Maven Build

[error] 48-48: Compilation error: '(' or '[' expected.

🤖 Prompt for AI Agents
In src/main/java/org/example/App.java around lines 47 to 56, the Car object is
instantiated with a missing constructor call parentheses; replace the invalid
"new Car;" with "new Car();" so the object is properly constructed, then leave
the subsequent setter calls unchanged and ensure the file compiles.

}
21 changes: 21 additions & 0 deletions src/main/java/org/example/config/JPAConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package org.example.config;

import jakarta.persistence.EntityManager;
import jakarta.persistence.EntityManagerFactory;
import jakarta.persistence.Persistence;

public class JPAConfig {

private static final EntityManagerFactory emf =
Persistence.createEntityManagerFactory("carRentalPU");

public static EntityManager getEntityManager() {
return emf.createEntityManager();
}

public static void close() {
if (emf.isOpen()) {
emf.close();
}
}
}
4 changes: 4 additions & 0 deletions src/main/java/org/example/controller/BookingController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.example.controller;

public class BookingController {
}
11 changes: 11 additions & 0 deletions src/main/java/org/example/controller/CarController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.example.controller;

public class CarController {
boolean CarDamage=false;

boolean CarRented=false;
boolean CarAvailable=true;
boolean CarBooked=false;
boolean CarBroke=false;
boolean CarReturned=false;
}
5 changes: 5 additions & 0 deletions src/main/java/org/example/controller/CustomerController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package org.example.controller;

public interface CustomerController {
int addCustomer();
}
4 changes: 4 additions & 0 deletions src/main/java/org/example/controller/MainViewController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.example.controller;

public class MainViewController {
}
58 changes: 58 additions & 0 deletions src/main/java/org/example/model/Booking.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
package org.example.model;

import jakarta.persistence.*;


import javax.tools.DocumentationTool;
import javax.xml.stream.Location;
import java.time.LocalDate;
Comment on lines +6 to +8

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Remove incorrect imports and add missing ones.

Lines 6-7 contain wrong imports:

  • javax.tools.DocumentationTool is unused and unrelated to booking functionality
  • javax.xml.stream.Location is the wrong Location type—you need a custom entity class

Additionally, line 35 references List and Extra which are not imported.

🔎 Fix imports
-import javax.tools.DocumentationTool;
-import javax.xml.stream.Location;
 import java.time.LocalDate;
 import java.time.LocalDateTime;
+import java.util.List;

You'll also need to create or import the Location and Extra entity classes.

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In src/main/java/org/example/model/Booking.java around lines 6 to 8, remove the
incorrect imports javax.tools.DocumentationTool and javax.xml.stream.Location,
and add the missing imports for java.util.List and your domain entity classes
(e.g. org.example.model.Location and org.example.model.Extra); keep
java.time.LocalDate. Also ensure the Location and Extra entity classes exist (or
create them) in the referenced package so the Booking class can import and use
them without compilation errors.

import java.time.LocalDateTime;

@Entity
public class Booking {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@ManyToOne(optional = false)
@JoinColumn(name = "customer_id")
Customer customer;

@ManyToOne(optional = false)
@JoinColumn(name = "car_id")
private Car car;

@ManyToOne
@JoinColumn(name = "pickup_location_id")
private Location pickupLocation;

@ManyToOne
@JoinColumn(name = "dropoff_location_id")
private Location dropoffLocation;

@OneToMany
@JoinColumn(name = "booking_id")
private List<Extra> extras;

@OneToOne
@JoinColumn(name = "payment_id")
private Payment payment;

private LocalDate startDate;
private LocalDate endDate;

protected Booking() {
// JPA requires a no-arg constructor
}

public Booking(Customer customer, Car car, Location pickupLocation, Location dropoffLocation, LocalDate startDate, LocalDate endDate) {
this.customer = customer;
this.car = car;
this.startDate = startDate;
this.endDate = endDate;
this.status = BookingStatus.RESERVED;
this.createdAt = LocalDateTime.now();

}
Comment on lines +12 to +56

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Add getters and setters for entity fields.

The Booking entity has no getter or setter methods. While JPA can access private fields directly, application code will need getters and setters to interact with booking data.

Do you want me to generate the getter and setter methods for all fields?

🤖 Prompt for AI Agents
src/main/java/org/example/model/Booking.java lines 12-56, the Booking entity
lacks accessor methods which application code needs to read and modify fields;
add public getter and setter methods for all entity fields shown (id, customer,
car, pickupLocation, dropoffLocation, extras, payment, startDate, endDate and
any missing fields referenced in the class such as status and createdAt) so the
rest of the code can interact with Booking; implement standard JavaBean getters
and setters (you may omit the setter for id if you want it read-only) and ensure
collection fields return defensive copies or initialize lists to avoid NPEs.

Comment on lines +48 to +56

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Add missing field declarations.

The constructor (lines 53-54) references status and createdAt fields that are not declared in the class. You also need to import BookingStatus.

🔎 Add missing fields and import

Add the import:

 import java.time.LocalDate;
 import java.time.LocalDateTime;
+import org.example.model.BookingStatus;

Add the fields after line 42:

     private LocalDate startDate;
     private LocalDate endDate;
+    
+    private BookingStatus status;
+    private LocalDateTime createdAt;

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In src/main/java/org/example/model/Booking.java around lines 48 to 56, the
constructor assigns to fields `status` and `createdAt` that are not declared and
the class is missing an import for BookingStatus; add the missing field
declarations (e.g., private BookingStatus status; private LocalDateTime
createdAt;) just after line 42, and add an import for BookingStatus (and for
java.time.LocalDateTime if not already imported) at the top of the file so the
constructor compiles.


}
8 changes: 8 additions & 0 deletions src/main/java/org/example/model/BookingStatus.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.example.model;

public enum BookingStatus {
RESERVED,
ACTIVE,
COMPLETED,
CANCELLED
}
41 changes: 41 additions & 0 deletions src/main/java/org/example/model/Car.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package org.example;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Fix package declaration to match file location.

The file is located at src/main/java/org/example/model/Car.java but declares package org.example;. This mismatch will cause compilation errors and make the class inaccessible from its expected location.

🔎 Correct the package
-package org.example;
+package org.example.model;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
package org.example;
package org.example.model;
🤖 Prompt for AI Agents
In src/main/java/org/example/model/Car.java around line 1, the file declares
package org.example but resides in org/example/model; update the package
declaration to package org.example.model; so the package matches the directory
structure and the class compiles and is accessible from its expected package.


import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;

@Entity
public class Car {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

private String brand;
private String model;
private int year;
private String type;
private double price;
private double dailyPrice; // ny egenskap

// Getters och setters
public Long getId() { return id; }

public String getBrand() { return brand; }
public void setBrand(String brand) { this.brand = brand; }

public String getModel() { return model; }
public void setModel(String model) { this.model = model; }

public int getYear() { return year; }
public void setYear(int year) { this.year = year; }

public String getType() { return type; }
public void setType(String type) { this.type = type; }

public double getPrice() { return price; }
public void setPrice(double price) { this.price = price; }

public double getDailyPrice() { return dailyPrice; }
public void setDailyPrice(double dailyPrice) { this.dailyPrice = dailyPrice; }
}
21 changes: 21 additions & 0 deletions src/main/java/org/example/model/Customer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package org.example.model;

import jakarta.persistence.*;
import java.util.ArrayList;
import java.util.List;

@Entity
public class Customer {

@Id
@GeneratedValue
private Long id;

private String name;
private String email;

@OneToMany(mappedBy = "customer")
private List<Booking> bookings = new ArrayList<>();

// getters & setters

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Implement missing getters and setters.

The comment indicates getters and setters should exist, but they are not implemented. This will cause compilation errors when other code attempts to access Customer fields (e.g., customer.getName(), customer.setEmail()).

Do you want me to generate the getter and setter methods for all fields?

🤖 Prompt for AI Agents
In src/main/java/org/example/model/Customer.java around line 20, the placeholder
comment "// getters & setters" indicates missing accessor methods; implement
public getter and setter methods for every private field in the Customer class
using standard JavaBean naming (e.g., getX/setX or isX for booleans) matching
each field's type, ensure method signatures are public and return/accept the
correct types, and update imports if necessary so other classes can call
customer.getName()/customer.setEmail(...) without compilation errors.

}
7 changes: 7 additions & 0 deletions src/main/java/org/example/model/Payment.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.example.model;

import jakarta.persistence.Entity;

@Entity
public class Payment {
}
Comment on lines +5 to +7

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Missing required @id field for JPA entity.

A JPA entity must have a primary key field annotated with @Id. Without it, the EntityManagerFactory will fail to initialize and the application will not start.

🔎 Apply this diff to add the required primary key:
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+
 @Entity
 public class Payment {
+    @Id
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
+    private Long id;
+    
+    // Getters and setters
+    public Long getId() { return id; }
 }
🤖 Prompt for AI Agents
In src/main/java/org/example/model/Payment.java around lines 5 to 7, the JPA
entity class lacks a primary key annotated with @Id which prevents the
EntityManagerFactory from initializing; add a long (or UUID) id field annotated
with @Id and an appropriate generation strategy (e.g. @GeneratedValue(strategy =
GenerationType.IDENTITY) or AUTO), include its getter and setter, and import the
required javax.persistence annotations so the entity has a proper primary key.

4 changes: 4 additions & 0 deletions src/main/java/org/example/repository/BookingRepository.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.example.repository;

public class BookingRepository {
}
21 changes: 21 additions & 0 deletions src/main/java/org/example/repository/CarRepository.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package org.example.repository;

import org.example.model.Car;
import org.example.util.JPAUtil;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash

# Find JPAUtil class
echo "=== Searching for JPAUtil class ==="
fd "JPAUtil" -e java

echo -e "\n=== Searching for getEntityManager in util package ==="
find . -path "*/org/example/util/*" -name "*.java" -type f

echo -e "\n=== Searching for CarRepository ==="
find . -name "CarRepository.java" -type f

Repository: ithsjava25/project-jpa-grupp-7-g

Length of output: 262


🏁 Script executed:

#!/bin/bash

# Read CarRepository.java to see the import and usage
echo "=== CarRepository.java content ==="
cat ./src/main/java/org/example/repository/CarRepository.java

# Search entire codebase for JPAUtil references
echo -e "\n=== Searching for any JPAUtil references ==="
rg "JPAUtil" --type java

Repository: ithsjava25/project-jpa-grupp-7-g

Length of output: 808


JPAUtil class does not exist—import is broken.

The import statement references org.example.util.JPAUtil, but this class is not present in the codebase. CarRepository will fail to compile. Either create the JPAUtil utility class at src/main/java/org/example/util/JPAUtil.java with a getEntityManager() method, or update the import to reference an existing utility class.

🤖 Prompt for AI Agents
In src/main/java/org/example/repository/CarRepository.java around line 4, the
import org.example.util.JPAUtil is invalid because the JPAUtil class is missing;
fix by either adding a new utility class at
src/main/java/org/example/util/JPAUtil.java that exposes a public static
EntityManager getEntityManager() (initialize EntityManagerFactory once and
return EntityManager instances) or update the import to an existing utility
class in the project that provides an equivalent getEntityManager() method and
adjust calls in CarRepository accordingly so the repository compiles.


import jakarta.persistence.EntityManager;
import java.util.List;

public class CarRepository {

public List<Car> findAll() {
EntityManager em = JPAUtil.getEntityManager();

List<Car> cars =
em.createQuery("SELECT c FROM Car c", Car.class)
.getResultList();

em.close();
return cars;
}
}
4 changes: 4 additions & 0 deletions src/main/java/org/example/repository/CustomerRepository.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.example.repository;

public class CustomerRepository {
}
4 changes: 4 additions & 0 deletions src/main/java/org/example/service/BookingService.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.example.service;

public class BookingService {
}
4 changes: 4 additions & 0 deletions src/main/java/org/example/service/CarService.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.example.service;

public class CarService {
}
4 changes: 4 additions & 0 deletions src/main/java/org/example/service/CustomerService.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.example.service;

public class CustomerService {
}
17 changes: 17 additions & 0 deletions src/main/resources/META-INF/persistence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<persistence version="2.2"
xmlns="http://xmlns.jcp.org/xml/ns/persistence">
<persistence-unit name="carRentalPU">

<properties>
<property name="jakarta.persistence.jdbc.url"
value="jdbc:mysql://localhost:3306/carrental"/>
<property name="jakarta.persistence.jdbc.user" value="root"/>
<property name="jakarta.persistence.jdbc.password" value="password"/>
<property name="jakarta.persistence.jdbc.driver"
value="com.mysql.cj.jdbc.Driver"/>

<property name="hibernate.hbm2ddl.auto" value="validate"/>
<property name="hibernate.show_sql" value="true"/>
</properties>
</persistence-unit>
</persistence>
3 changes: 3 additions & 0 deletions src/main/resources/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tabell med bilar
uthyrnings tabell med many2man
kund tabell
Comment on lines +1 to +3

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Replace placeholder notes with valid CSS or remove the file.

This file contains Swedish text notes rather than valid CSS syntax, which will cause parse errors when the stylesheet is loaded. The static analysis tool correctly identified these as syntax errors.

If CSS styling is not yet needed, consider removing this file until actual styles are required. Otherwise, replace the content with valid CSS rules.

🔎 Example of valid CSS structure:
-tabell med bilar
-uthyrnings tabell med many2man
-kund tabell
+/* Car table styles */
+.car-table {
+    /* Add styles here */
+}
+
+/* Rental table styles */
+.rental-table {
+    /* Add styles here */
+}
+
+/* Customer table styles */
+.customer-table {
+    /* Add styles here */
+}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
tabell med bilar
uthyrnings tabell med many2man
kund tabell
/* Car table styles */
.car-table {
/* Add styles here */
}
/* Rental table styles */
.rental-table {
/* Add styles here */
}
/* Customer table styles */
.customer-table {
/* Add styles here */
}
🧰 Tools
🪛 Biome (2.1.2)

[error] 3-3: Expected a compound selector but instead found the end of the file.

Expected a compound selector here.

(parse)


[error] 1-1: Unknown type selector is not allowed.

See MDN web docs for more details.
Consider replacing the unknown type selector with valid one.

(lint/correctness/noUnknownTypeSelector)


[error] 1-1: Unknown type selector is not allowed.

See MDN web docs for more details.
Consider replacing the unknown type selector with valid one.

(lint/correctness/noUnknownTypeSelector)


[error] 1-1: Unknown type selector is not allowed.

See MDN web docs for more details.
Consider replacing the unknown type selector with valid one.

(lint/correctness/noUnknownTypeSelector)


[error] 1-2: Unknown type selector is not allowed.

See MDN web docs for more details.
Consider replacing the unknown type selector with valid one.

(lint/correctness/noUnknownTypeSelector)


[error] 2-2: Unknown type selector is not allowed.

See MDN web docs for more details.
Consider replacing the unknown type selector with valid one.

(lint/correctness/noUnknownTypeSelector)


[error] 2-2: Unknown type selector is not allowed.

See MDN web docs for more details.
Consider replacing the unknown type selector with valid one.

(lint/correctness/noUnknownTypeSelector)


[error] 2-2: Unknown type selector is not allowed.

See MDN web docs for more details.
Consider replacing the unknown type selector with valid one.

(lint/correctness/noUnknownTypeSelector)


[error] 2-3: Unknown type selector is not allowed.

See MDN web docs for more details.
Consider replacing the unknown type selector with valid one.

(lint/correctness/noUnknownTypeSelector)


[error] 3-3: Unknown type selector is not allowed.

See MDN web docs for more details.
Consider replacing the unknown type selector with valid one.

(lint/correctness/noUnknownTypeSelector)

🤖 Prompt for AI Agents
In src/main/resources/css/main.css lines 1-3 there are Swedish placeholder notes
("tabell med bilar", "uthyrnings tabell med many2man", "kund tabell") which are
not valid CSS and will break stylesheet parsing; either delete the file if no
styles are required yet or replace the placeholders with valid CSS rules (e.g.,
add a comment block using /* ... */ if you need to keep notes, or implement
actual selectors and declarations for the tables and customer/rental layouts)
and ensure the file contains only syntactically correct CSS.

Empty file.
Empty file.
Empty file.
10 changes: 10 additions & 0 deletions src/main/resources/fxml/main_view.fxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<BorderPane xmlns:fx="http://javafx.com/fxml">
<center>
<Label text="Car Rental System" />
</center>
</BorderPane>
Loading
Loading