Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
0 answers
35 views

How does Spring JPA "instantiate" the interfaces that extends repositories?

I'm delving into Java concepts such as dynamic proxies, reflection, etc. That's why I'm trying to implement some Spring features. Anyway... I created the dynamic proxy: @Override public Object invoke(...
-1 votes
1 answer
49 views

Spring Data JDBC inserts varchar into Postgres jsonb column even with custom PGobject converter

I’m trying to persist a JSON object into a PostgreSQL jsonb column using Spring Data JDBC (not JPA). Even with a custom @WritingConverter that returns a PGobject of type jsonb, PostgreSQL errors out ...
1 vote
1 answer
106 views

@LastModifiedDate is not updated with @ManyToMany relation

In Spring Boot I have an entity: @Entity @Table(name = "Product") @EntityListeners(AuditingEntityListener.class) public class Product extends BaseEntity { ... @NotNull @...
0 votes
0 answers
123 views

Spring Data JDBC - mapping a series of nested one-to-many relationships inside an aggregate

This is a request for clarification after watching a video about Spring Data JDBC. I have an aggregate made of Book (aggregate root), BookCopy and BookCopyQualityControl. A Book has many BookCopy, and ...
0 votes
1 answer
68 views

undefined method error in eclipse in a project correctly building with maven

Eclipse gives me the following error: The method delete(Sumti) is undefined for the type SumtiRepository DeleteBridiTest.java The relevant parts of DeleteBridiTest.java: public class DeleteBridiTest ...
1 vote
0 answers
66 views

Why does findByTypeNotIn in Redis OM Spring generate the same RediSearch query as findByTypeIn?

I’m using Redis OM Spring with a simple repository: @Document(value = "Marker", indexName = "MarkerIdx") data class RedisMarker( //other indexed @Indexed ...
2 votes
1 answer
58 views

Not able to reset sequence for the primary key of an entity

I'm implementing some tests for REST endpoints that manipulate a database (in test context, I use an H2 database) via spring data JPA, and I would like to have all the tables clean (no data in it, and ...
1 vote
0 answers
66 views

Sharing a common model between a transformer API and persistence layer API

I am working on a Java project where certain XML files are converted to POJOs and then saved to the database in Cassandra. The 2 projects have a common model which are identical in every way. Since ...
1 vote
1 answer
45 views

Why does Ignite allow SQL querying of a cache A (only) from a different cache B's Ignite Cache reference

I noticed that Ignite seems to allow SQL querying (with SqlFieldsQuery) of a cache say cache A from a different cache say cache B's IgniteCache reference. I can understand join queries, but shouldn't ...
0 votes
1 answer
115 views

How do I serialize a Kotlin LocalDate or LocalDateTime to a BsonDateTime with Spring Data?

I am trying to serialize a model with a LocalDate into a BsonDateTime using Spring Data Mongo. This MongoDB guide for Kotlin usage says that, with the @Serializable and @Contextual annotations, ...
0 votes
1 answer
36 views

Aggregate and paginate over inner array with SpringData MongoDB

I need to paginate over documents contained in arrays of the root documents. For example, to view the first 10 orders with an open status across customers. Customer structure { "_id": ...
0 votes
1 answer
57 views

Handling optional search parameters in Criteria API

Imagine I have optional search parameters that can be null. Is there a more concise alternative for checking each of them explicitly before adding a jakarta.persistence.criteria.Predicate to some ...
-4 votes
1 answer
98 views

Referencing parameter attributes in JPQL

I get a nice DTO in my controller. // UserController @GetMapping public ResponseEntity<List<UserResponseDto>> findUsers(@ParameterObject FindUserRequestDto userRequestDto, ...
-1 votes
1 answer
46 views

Fetching records matching multiple joined attributes

I need to return User records that: Have an email matching email strictly and Have a phone matching phone strictly All of those are optional. That is, the request may contain only an email, for ...
2 votes
1 answer
75 views

@EntityGraph makes eager attributes lazy

I want to be able to eagerly fetch associated "to-many" entities. So I included a separate "eager" query method annotated with @EntityGraph. @RepositoryDefinition(domainClass = ...

15 30 50 per page
1
2 3 4 5
...
803

AltStyle によって変換されたページ (->オリジナル) /