I am creating custom data sources and when I am trying to create a repository, the bean is not getting initialized properly and I am getting an error as…
I am new in the spring/boot word and have a working JAX-WS based web-service declared in a springboot project. It is started and configured via web.xml and sun-jaxws.xml. So, no beans included there only endpoints declarations and servlet…
I am trying to persist an entity called Instructor to H2 in-memory database using Spring data JDBC, if I create the tables manually everything works fine, otherwise I get this error (I added the entire error stack trace at the…
I am trying to use JaVers with Spring Boot project with Spring Data JDBC included.
So, default JaversSqlAutoConfiguration.java do not fit which is for jpa hibernate.
Could you please help to identify JaVers configuration for Spring Boot project with…
I have multiple aggregate classes, such as Request, Scribe, Candidate, and Exam.
Sample schema:
Request (id, scribe_id, candidate_id, exam_id, status)
Scribe (id, name)
Candidate (id, name)
Exam (id, name, schedule)
As you can see, Request table has…
In Spring Data JDBC if an entity (e.g. Customer) has a value (e.g. Address) like in the example here the value has a back reference column (column customer in table address) to the entity in the db schema:
CREATE TABLE "customer" (
"id" …
I tried to implement a reference table when it comes to ManyToMany relation in the context of DDD based on this article(https://spring.io/blog/2018/09/24/spring-data-jdbc-references-and-aggregates)
I have different naming for JdbcEntity because I…
How do I convert JSON String stored in a DB column to a Map attribute defined in entity class Product?
I have defined a @ReadingConverter JsonToMapConverter class and a ProductRepository. Calling productRepository.findAll() throws error…
We are retrieving data from oracle using spring data JDBC
We are using org.springframework.data.relational.core.dialect.OracleDialect to retrieve data from database.
It is working as expected when we have a repository that uses CrudRepository
But if…
In my project I have the following entity which can be successfully saved in Postgres:
public class Aggregate {
@Id
private UUID id;
private JsonNode data;
// getters and setters omitted
}
When I try to save the same entity in SQLite I…
Client side PK creation is pretty common, especially when using UUIDs as keys. Unfortunately I can't see where this is supported in Spring Data JDBC. I get these errors instead:
Failed to execute…
After an upgrade of spring boot 2.2.11 to 2.3.9, some database queries in our application stopped working. When I downgraded to 2.3.8, they did work again.
So something must have changed from 2.3.8 to 2.3.9, but I still haven't found out what it…
I'm quite new to the Spring Data JDBC library, but so far I'm really impressed.
Unfortunately JDBC driver for my database (SAP Hana) doesn't support retrieving of generated keys after INSERT (implementation of method…
I am trying to save data in postgres using spring data jdbc. i am able to update, get and delete entity but i am not able to save it. took a sample project from internet and I tried to follow spring data example for jdbc, used JdbcAggregateTemplate…
PROBLEM:
when I tried to create a new entity 'Customer' with Spring Data JDBC (in a Spring-boot application)
@Data
public class Customer {
@Id
private String identifier;
private String name;
}
Using a…