Questions tagged [spring-boot-jpa]
96 questions
0
votes
3 answers
I am getting NoSuchBeanDefinitionexception while creating a simple Spring Boot project with JpaRepository
I am creating a simple Spring Boot application with JpaRepository, but when I am trying to run my application it gives an error that "NoSuchBeanDefinitionException". I am new to Spring Boot.
I have also tried to annotate my main class with…

Amit
- 231
- 1
- 8
- 19
0
votes
1 answer
Fetch Records from @Entity as well as relation table using Specification as Query
I am query data from Entity which has ManytoOne relation on other entities.
Using Specification able to fetch the Record of only Root. But I need to fetch the column from relational entities as well.
I am new to Spring boot and trying to build…

Anshul Kabra
- 129
- 17
0
votes
0 answers
Spring Boot app inside Docker on Ubuntu 18 (as Virtual Machine) doesn't connect to host PostgreSQL. PSQLException: Connection refused
I use Spring Boot application inside Docker container on Ubuntu 18 (in a Virtual Box). My application should connect to Postgres database installed on this same VM.
I followed all steps with this…

Kirill Ch
- 5,496
- 4
- 44
- 65
0
votes
3 answers
Unable to start web server due to missing ServletWebServerFactory
I have looked on Stack Overflow a few days ago. My problem seems to be very common, but I cannot manage to fix it.
I've tried these ways 1 and 2.
This is my application.propreties :
spring.datasource.driver-class-name=…

louison
- 1
- 3
0
votes
2 answers
Same ouput repeats many times when I use one-to-one mapping
I'm just starting to learn spring-boot-jpa.
I tried using one-to-one mapping in my program and when I fetch the output using Getmapping I get same data repeated multiple times.
I'm not sure what the problem is with the code.
One to One…

Kabil
- 1
0
votes
1 answer
How to do inner join on different db tables in springboot jpa
I want to implement below query using springboot jpa,Is it possible??
select * from
Claims.misuser.CLXMstApplicationRole AR WITH (NOLOCK) INNER JOIN
PADB.misuser.clxmstaccesspermission AP WITH (NOLOCK) ON
AP.intApplicationRoleId =…

chandni dassani
- 1
- 1
0
votes
1 answer
Invalid identifier: ORA ORA-00904; Hibernate ignoring Intellij-IDEA generated @Column (name="") annotation on getter
I have a Spring boot application (2.1.5) using Hibernate (5.1), as my JPA provider, accessing an Oracle 11.2.0.4 DB, with Hibernate Dialect Oracle10gDialect
I have created a repo like this
@Repository
public interface VehStoRepository extends…

llatrbng
- 43
- 5
0
votes
1 answer
How can I return map collections as jpa query
I have a question. when I use spring data jpa, I want to it return Map Collections, but it wrong. Then I search on the internet found a solution. Flowing.
@Transactional(readOnly = true)
public interface GoodsRepository extends…

Gavin
- 1
0
votes
2 answers
Spring boot jpa query builder for aggregate values?
I'd like to create customizable query that output aggregate values. I know three ways to get and execute a query, but none of them seem to suffice. The queries I want to build look something like this:
Select max(category), min(price) as minprice…

Albert Hendriks
- 1,979
- 3
- 25
- 45
0
votes
1 answer
Can we use JPA Repository to pull/fetch data from Mysql View? If yes How?
I have many tables where I am using JPARepository to fetch data from it. Then I have created on MySql - View and tried to use JPARepository to do findAll but it is not working.

Yogesh Jadhav
- 1
- 5
0
votes
0 answers
Spring Boot JPA multitenancy HikariCP pool runs full quickly
I have a Spring Boot - JPA - Postgres multi tenancy setup where every tenant is in a separate schema. Everything was working fine until today when I tried to create more than 5 tenants. No I'm getting this exception on…

Tarmo
- 3,851
- 2
- 24
- 41
0
votes
1 answer
findAll() is not working in SpringBoot Rest MySql CRUD operations application
I am trying to perform CRUD operations using spring boot+REST+MySQL
along crudrepository interface,when i try to get data from database,i
am getting empty list back.I found that findAll() method in my application is not working as expected.
My…

Siva Sai kiran
- 47
- 1
- 10
0
votes
1 answer
Spring Jpa Entity - EntityManager.getReference
I have a Spring Boot application using Spring JPA, and what I'm trying to do is to save a new entity that has some foreign keys by just providing the IDs of those child entities. So, like:
@Table(name = "PERSON")
public class Person {
@Column(name =…

cloudwalker
- 2,346
- 1
- 31
- 69
0
votes
2 answers
java.lang.IllegalArgumentException: Parameter value [1604438222] did not match expected type [java.lang.Integer (n/a)
I have a standalone app that is Up and getting below error when calling "http://localhost:8080/user/person/1604438222".(trying to get person id details from db)
2019-03-01 11:23:34.296 ERROR 52000 --- [nio-8080-exec-1]…

vicky
- 149
- 2
- 7
- 21
0
votes
2 answers
Spring Boot Data JPA and PostgreSQL Auto Generate Enum Type
If I use MySQL, my entities and enums are created successfully.
I changed my db as PostgreSQL-9.4 . So, I have some errors as follow:
... Caused by:
org.hibernate.tool.schema.spi.SchemaManagementException: Unable to
execute schema management to…

cguzel
- 1,673
- 2
- 19
- 34