Relative Content

Tag Archive for springjpa

Spring Data JPA findById, how to use

Hello my name is Andre and I am working on a Spring Boot Project. This application will allow a user to login into to the system with a username and password via standard HTML webpage. Spring Security correctly authenticates and authorizes the user, then the user is taken to the home page where the username is displayed along with user information via Fetch API. The correct information is being retrieved from the Postgres Database. Once the user is logged (everything fine up until this point) in he should see a list of his reimbursement tickets. When I comment out all references to the ticketRepository the application runs. When I uncomment out all references to ticketRepository I get the following error: Invoked method public abstract java.util.List com.Practice.PracticeProject.Repositories.TicketRepository.findAllByemployeeID(int) is no accessor method I am using IntelliJ IDEA 2024.1 (Community Edition) on Windows 11.0, Postgres 16 Here is my tickets table: sunnyday=# d tickets

AttributeConverter not being employed

I’ve looked at a number of similiar questions on Stack Overflow to no avail. I have a pretty simple scenario where I would like to use an AttributeConverter to convert an Enum to a numeric code in the database. My enum class is: