I want to show it in my response distance field, but I am not able to do it please help. Here is my repo class in alias name (distance) I need to att ...
I want to show it in my response distance field, but I am not able to do it please help. Here is my repo class in alias name (distance) I need to att ...
I have a problem about writing a native query for dto in Spring Boot with the usage of Postgresql. Here is the dto shown below. Here is the native ...
I'm new using native queries and I'm trying to use a native query with "BETWEEN" keyword in oracle DB here is my query: but I got an error that sa ...
I have a query like this that works well : I need to use the .setParameter method from EntityManager to insert a whole array instead of ["CHEST"] e ...
I have this POSTGRESQL query: And this seems to work perfectly when I run in on the database directly. (Its returning all the packages with latest ...
I'm trying to make a bool must match query in java with this structure I've tried this and I'm getting a null value: The bool query gets this va ...
In my repository class, I am doing a native query using the @Query annotiation, by only selecting a few fields from MyDomain like this: Here is the ...
I am trying to pass a list of Strings in to IN clause in a native query using citext for a case insensitive search. Everytime I try to test this query ...
I have created a JPA query to obtain a set of data. What it returns is an entity and a new field (an extra column) in each of the records. Which th ...
What does ?1 mean in the above query? ...
I have a sub entity MyEntity that inherits properties from a mapped super class with an embedded id that has properties that don't exist in the table ...
i am trying to write a native Query on repository level so as to be able to filter the results. Below the property of my Entity (mapping to table Dumm ...
I was wondering if this is even possible. If we have situation like this: and where we have two exact same where clause, is there any way to cre ...
I would like to know if it is possible to retrieve the (Native) SQL Query, with parameter values, from a TypedQuery. The code would be something like: ...
This is my repository class: This is my repository class junit: The restrictionLevel doesn't get updated. It stays null. Hence, assert statement ...
I have a Spring Boot application with a JpaRepository which contains a native query with this structure: And I'm getting the following exception: ...
How to write the below query as jpa method using findBy...? ...
How to use the below query dynamically in spring boot repository using How to write the above query using jpa method? I have used as given below b ...
I have a java method that returns an Optional<Long>: Optional<Long> findOptionalRelation(String a, String b) In the implementation there ...
There is native query written by developer We can also write Named query for thist. Now for simple query shall we use Native or Named? I understan ...