Why am I getting this error, regarding Hibernate on my RESTful API?

The error in question: jakarta.servlet.ServletException: java.lang.IllegalArgumentException: org.hibernate.query.SemanticException: Could not interpret path expression ‘brand_id’; I am new to hibernate and REST Api design, so it eludes me why I get this error, I have tried so many things. "brand_id" is the name of the foreign key column in my database, you know what, lemme show you.… Read More Why am I getting this error, regarding Hibernate on my RESTful API?

Getting an SQL syntax error doesn't when trying to do GET REQUEST

Hello I’m trying to display the Student data with his corresponding subject based on the subject_id foreign key and displaying the result on GET REQUEST. I don’t know how I need to rewrite the SQL command to remove the error. Here is the Error: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the… Read More Getting an SQL syntax error doesn't when trying to do GET REQUEST