Im trying to set up a h2 database using jpa/jdbc, after creating an implemntation for a query interface using jpa as opposed to jdbc i am now getting the error:
Parameter 0 of constructor in com.nsa.charitystarter.service.CharityQueries required a…
After listening to a nice talk about Spring Data JDBC and Doamin-Driven Design by Jens Schauder (as an AFOL I love your examples;-) I experimented a bit but get stuck quite soon with my domain types. Of course I need to write custom JDBC converters,…
my Spring application has to read from a table called MY_DOMAIN_OBJECT which belongs to MY_CUSTOM_SCHEMA schema, note that the same table is present in the default schema as well.
I'm using spring-data-jdbc but I'm not able to read from the right…
I'm trying to read a row in a Postgresql table that has a BYTEA field, using Spring Data JDBC, and it's failing with a Couldn't find PersistentEntity for type byte! MappingException. The method is failing in…
@Modifying
@Query(value = "update orders o set o.status =#{#order.status} ")
Integer updateOrder(@Param("order") Order order);
@Modifying
@Query(value = "update orders o set o.status = #{#order.status}")
Integer…
I created the following Entity and test it using h2:
@Getter
public class Topic {
@Id
private long id;
private final Title title;
@CreatedDate
private LocalDateTime createdAt;
@LastModifiedDate
private LocalDateTime…
i have the following constellation:
public final class ApplicationUser {
private final @Id
@Wither
long applicationUserId;
@NotNull
@Size(min = 4, max = 20)
private final
String login;
@NotNull
@Email
private final
String eMail;
@Wither
private…
I'm trying to use Spring Data JDBC with MyBatis. I'm interested in using the out-of-the-box CRUD methods that CrudRepository provides and in writing ADDITIONAL custom queries defined in MyBatis XML files.
From reading the instructions from…
I have an aggregate that has a one to one relationship, and in the second level, the child entity has a one to many relationship (a List). Currently when the entity gets saved it does what is expected, and is saving it OK. But when I try to get the…
I can't find where to define custom column name for conjunction table in case of many-to-many relationship in spring-data-jdbc.
I extended aggregate example from https://github.com/spring-projects/spring-data-examples in my fork:…
I'm getting the following error inserting in Oracle DB with Spring Data JDBC v1.0.4 (not JPA):
Caused by: org.springframework.dao.DataRetrievalFailureException: The generated key is not of a supported numeric type. Unable to cast [oracle.sql.ROWID]…
I am new to Spring Data JDBC, and I am struggling to create a simple Dto and get it persisted on the DB.
I am using Spring-Boot 2.1.1.RELEASE and and Oracle 12 Database.
UserDto
@Table(value="USERS_T")
public class UserDto extends PersistableDto {
…
I'm happening to end up with something really weird in Spring Data JDBC (using Spring Boot 2.1 with necessary starters) aggregate handling. Let me explain that case (I'm using Lombok, the issue might be related, though)...
This is an excerpt from my…
I'm trying to build an API using Spring Boot Data JDBC with Postgres.
I have a simple pojo that I wish to write to a table:
public final class Test {
private final String id;
private final String definition;
}
The table has 2 columns, a…
Using Spring Data JDBC I would like for the Inner variable 'inner' to be mapped to a varchar column in the outer table rather than being mapped to its own table. Is this possible?
public class Outer {
@Id
private String id;
private Inner…