Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

so i am using entity graph to make a dynamic query of a table, the query is being made correctly which is corresponding to my graph and subgraph attribute nodes but when i fetch it as the entity, the ...
Nima Khajehpour's user avatar
0 votes
1 answer
42 views

I defined a Hibernate Filter to filter out the deleted records. My wishlist: The Filter should be enabled all the time as default. Only in special cases when I need the deleted records, then I would ...
deadpoint's user avatar
  • 461
2 votes
1 answer
152 views

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(...
kitt51's user avatar
  • 11
1 vote
1 answer
111 views

In Spring Boot I have an entity: @Entity @Table(name = "Product") @EntityListeners(AuditingEntityListener.class) public class Product extends BaseEntity { ... @NotNull @...
Inux's user avatar
  • 15
0 votes
1 answer
71 views

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 ...
Árpád Magosányi's user avatar
2 votes
1 answer
60 views

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 ...
Skinay's user avatar
  • 21
1 vote
1 answer
47 views

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 ...
lmk's user avatar
  • 778
0 votes
1 answer
39 views

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": ...
Half_Duplex's user avatar
  • 5,246
-4 votes
1 answer
101 views

I get a nice DTO in my controller. // UserController @GetMapping public ResponseEntity<List<UserResponseDto>> findUsers(@ParameterObject FindUserRequestDto userRequestDto, ...
Sergey Zolotarev's user avatar
2 votes
1 answer
81 views

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 = ...
Sergey Zolotarev's user avatar
0 votes
1 answer
91 views

I have the following query method for a native query in a Spring Boot application @Query(value = """ SELECT a.*, ST_Distance_Sphere(a.coordinate, ST_GeomFromText('POINT(:lat ...
Bob's user avatar
  • 1
2 votes
0 answers
40 views

I'm getting sporadic timeout exceptions from the Cassandra driver in a Spring Boot project, in spite of having what I think are the appropriate yml configuration properties. spring: cassandra: ...
jaco0646's user avatar
  • 17.4k
0 votes
1 answer
97 views

I'm working on a Spring Boot project using JPA and trying to query an entity that uses a composite primary key with @IdClass, but I can't get the repository method to work. I've double-checked that: ...
Kubra's user avatar
  • 3
0 votes
1 answer
30 views

@Document("scenarios") public class Scenario { @Id private String id; @Indexed(unique = true) private String name; private String description; @JsonSerialize(using = ...
B Sheely's user avatar
2 votes
2 answers
131 views

The CategoryRepository is defined like this: public interface CategoryRepository extends JpaRepository<Category, Long>{ @Transactional @Query("select c from Category c where name = :...
Cody's user avatar
  • 2,691
0 votes
1 answer
72 views

I need to implement filtering to all entities' repositories. The filtering follows the same scenario, differing only in Filter and Entity params. So now I have my filter interface: interface ...
Svetlana's user avatar
0 votes
1 answer
80 views

I have an application in Spring Boot 3.4.x using Spring Data R2DBC. Let's say I have two aggregate roots, Book and Author. I understand that from the reactive point of view, it is not possible to work ...
banterCZ's user avatar
  • 1,902
0 votes
1 answer
76 views

I have a large timeseries collection filled with millions of documents called "Events" that have the following structure { "_id": {"$oid": "123456"}, "...
ben8622's user avatar
  • 71
0 votes
0 answers
47 views

I use spring-data-jdbc and have mapped my DB tables with org.springframework.data.relational.core.mapping.Table. I also have some custom queries with org.springframework.data.jdbc.repository.query....
einsA's user avatar
  • 941
0 votes
1 answer
87 views

I have an issue where I have an object that takes some fields, and one of these fields is a List (0-2, so nullable) and need to save it in a database (PostgreSQL is what I use). Now I know that having ...
18929371's user avatar
0 votes
0 answers
57 views

I am using ByteBuddy to generate classes from the JPA Persistence Unit and Spring Data, an older version already works with the persistence unit, spring data jpa and spring webmvc and, now my ...
José Carlos Canova's user avatar
1 vote
1 answer
1k views

I don't understand why this is needed now. I can't start my application because I have a service with @Transactional annotation and some methods with @TransactionalEventListener, and everything was ...
Tsyklop's user avatar
  • 493
0 votes
0 answers
114 views

In Jpa Spring Data when using saveAll for entities with the same ids - saveAll successfully saves all the enitities into the database. For example public interface JpaRepository extends JpaRepository&...
Mikhail Geyer's user avatar
0 votes
0 answers
49 views

I use spring boot 3.4.2, spring data jpa and oracle I have this query @Query(""" select n from Notice n join fetch n.noticeType nt join n.deposit d ...
robert trudel's user avatar
1 vote
1 answer
80 views

I am using Spring Data JDBC repositories which are defined through interfaces (which extend Repository<Entity, Id> and have their queries specified through @Query) for various entities and ...
Xavier Dury's user avatar
  • 1,623

1
2 3 4 5
241