Skip to main content

All Questions

Tagged with
0 votes
0 answers
56 views

Spring Boot 3.3.1 ignores `schema.sql` and `data.sql` during startup

My Spring Boot application with JPA is not executing schema.sql and data.sql files during startup. There are no indications in the logs that these files are being processed. One of the interesting ...
Amir Latifi's user avatar
0 votes
0 answers
36 views

How to define query method in spring data jpa if one of the query parameters is fixed?

If I have a customer table with columns cus_no, is_valid and create_time where cus_no corresponds to cusNo attribute (with data type String) of customer object, is_valid corresponds to isValid ...
190303458's user avatar
1 vote
1 answer
66 views

Spring Data JPA/Hibernate: Proper way to map Query with specific fields and joins into a Nested DTO

I have the following 3 entities:- Parent.java: @Entity @Getter @Setter @ToString public class Parent { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long parentId; ...
Sidharth Bajpai's user avatar
0 votes
0 answers
29 views

EntityManager Error in Spring Boot project when using h2 database , error is occuring when using the data.sql file add in src/main/resources

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/...
Harry Potter's user avatar
1 vote
0 answers
29 views

Data type for Elser Sparse Vector Embeddings in Spring Data

I'm generating sparse vector embeddings using elser model, i want to implement search using spring data based application, what datatype should i use for it. Will the following code work? @Field(...
Amandeep Singh's user avatar
1 vote
1 answer
66 views

Specify how LocalDateTime is stored in Azure CosmosDB for NoSQL

I have a spring boot project using azure cosmos db for nosql as the database, using CosmosRepository from spring-cloud-azure-starter-data-cosmos artifact. My entity looks like this: import java.time....
Overdrowsed's user avatar
-1 votes
1 answer
88 views

Spring Data OpenSearch Unable to Convert Value of @Timestamp to Java Instant

Hi I have field in my opensearch index of @timestamp which looks like this JSON in the document: “@timestamp”: “2024-06-03T20:31:06.40402165Z”,. I tried to retrive the value with the following field ...
LucyEly's user avatar
  • 63
0 votes
0 answers
27 views

ETC update query does not return modified object spring data jpa

I have a spring data jpa method that update a table based on a condition and return an object in case the update is happened or empty if the update is not happening. The database is postgres the ...
Youssef Merjaneh's user avatar
0 votes
0 answers
21 views

Run spring-boot-maven-plugin start goal without DB connection

I need to run spring-boot-maven-plugin start goal in our build process so that I can generate the Openapi.json with the springdoc-openapi-maven-plugin and generate typescript SDK with openapi-...
Ez Az's user avatar
  • 83
-1 votes
1 answer
112 views

Spring Boot connect to SQL Server database using Windows Authentication on port other than 1433

I am using Java Spring Boot 3.3.0 in IntelliJ. For dependencies, I added "Spring Data JDBC" and "MS SQL Server Driver". Do I need to add other dependencies? This is what I have for ...
faujong's user avatar
  • 1,107
1 vote
1 answer
31 views

testing application context in a spring boot application

When developing a Spring boot application, should I write test cases to test application context and bean configuration ? I am being told that it should be done but I have never done it or seen anyone ...
Juicy Jay's user avatar
  • 109
0 votes
1 answer
30 views

get the resources path in Spring

I am working on a project where I need to download the build's resources folder. I want to declare the path of the resources folder as a configuration property and later access that in my service. How ...
Pt15's user avatar
  • 1
0 votes
0 answers
97 views

Caused by: org.redisson.client.RedisAuthRequiredException: NOAUTH Authentication required

Am facing a pesky issue when trying to authenticate redis on spring boot. Am running redis as a docker container. Here is the docker-compose file: i can successfully authenticate the redis on the cli ...
slinger's user avatar
  • 195
0 votes
0 answers
27 views

Spring Jpa Repository implement several Entity in one repository

@Repository public interface ConsumptionDataRepository extends JpaRepository<ConsumptionDataEntity,Long> { List<ConsumptionDataEntity> findAllByKey(String key); List<...
Romillion's user avatar
  • 157
0 votes
2 answers
100 views

StoredProcedureQuery with Oracle Type fails

Please help. I am not able to call oracle procedure which has Oracle type as input. Also share if any sample available in git. Thanks in advance. Oracle Type: create or replace TYPE STUDENT_ID_ARRAY ...
sunleo's user avatar
  • 10.8k

15 30 50 per page
1
2 3 4 5
385