Skip to main content

All Questions

0 votes
0 answers
21 views

Im New To JPA and Hibernate I would like to know if this is an acceptable way of Fetching Data using JPA

There are three types of users users with ROLE_User users with ROLE_Admin users with ROLE_User and ROLE_Admin I wrote a query that filters out all users with admin access in MySQL SELECT * FROM ...
Mathew Francis's user avatar
0 votes
0 answers
46 views

Cannot resolve class or package 'dialect'

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://...
Семён Максимов's user avatar
0 votes
1 answer
62 views

ERROR: Parameter number 1 is not an OUT parameter while trying to login with credentials

I am trying to login to the application I gave the right credentials in Sql database but it is showing "No such account exists, Please insert valid credentials". The login table in sql have ...
Turaga Harini's user avatar
0 votes
1 answer
101 views

Connecting Spring application to MySQL ( Spring MVC, Spring Data JPA, Hibernate ) Old School way

Im trying to setup a basic CRUD app from this tutorial https://www.javaguides.net/2018/11/spring-mvc-5-spring-data-jpa-hibernate-jsp-mysql-tutorial.html but I get the following exception when trying ...
janedoe's user avatar
  • 67
0 votes
1 answer
374 views

Table is not creating in MySQL in SPRING BOOT

I have created a spring boot project in eclipse. Every setup was fine but the annotation I used in POJO class is not creating table in database. And the 'index.jsp' also not working when ran this ...
Shriram's user avatar
0 votes
0 answers
62 views

Database table not created in MySQL using Spring MVC, Hibernate and Tomcat 10.1.17

I am having trouble creating a database table in MySQL using Spring MVC and Tomcat 10.1.71. I have defined the table in my code and expected it to be automatically created when I run my application, ...
Osman Goni's user avatar
0 votes
1 answer
34 views

Springboot Hibernate @ManyToOne Mapping issue, Not sure how to link currently logged in user id to item added by the user

I am having trouble figuring out how to get the currently logged in users id and link it to the item they add using @ManyToOne mapping. When I add the item to database via my front end, id is null. I ...
James Coding's user avatar
0 votes
0 answers
351 views

MySQL Server for Web asking for root account password without even setting any password: Windows [duplicate]

I am trying to install the MySQL Database on my windows computer. When installing I get the following screens- On clicking next I get- Problem- What password do I need to enter on this screen? I ...
ayush's user avatar
  • 686
0 votes
0 answers
2k views

No default constructor found; [duplicate]

When i try to add data's into database ,i got this error here i'm not using @Autowired annotation because when i use it got multiple errors instead here i used constructor level injection.... SEVERE: ...
user1712's user avatar
0 votes
2 answers
1k views

cannot access org.hibernate.Session

I added database functions to my e-commerce store project. I try to do it. When i change hibernate-core version on 4.0.1.Final server cant start up. Debug under: debug here is my web.xml <?xml ...
Landorus's user avatar
0 votes
1 answer
2k views

Why Spring Mvc application with Hibernate throw an error: Unable to acquire JDBC Connection

I followed the tutorial on the following link:Tutorial Spring MVC, and I used Ubunto, MySQL and Eclipse, but at runtime I received an error, below the trace of the error: Root Cause org....
Dev Learning's user avatar
1 vote
2 answers
2k views

Mapping one to one relationships in Spring Boot

I am trying to map a User with a certain Table in a one to one relationship. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ...
Mile Stanislavov's user avatar
1 vote
1 answer
7k views

How to pass variable as long text in spring boot Entity to MYSQL

I got error: Data truncation: Data too long for column 'profile' at row 1 My stored variable photo down here: my entity code down here: Entity: @Entity @Table(name = "profile_master") ...
Faheem azaz Bhanej's user avatar
0 votes
1 answer
780 views

convert MultipartFile to required type byte[] thymeleaf error

im getting this error idk why There was an unexpected error (type=Bad Request, status=400). Validation failed for object='client'. Error count: 1 org.springframework.validation.BindException: org....
haifa's user avatar
  • 21
1 vote
1 answer
407 views

Hibernate inserts extra records in the database

I am working on a simple application built using Spring MVC, JSP, Hibernate, and MySQL. I have two entities: User, and UserDetail. User @Entity @Table(name = "user") public class User { @...
Yousaf's user avatar
  • 29.4k

15 30 50 per page
1
2 3 4 5
23