This is the code for bill entity, i have variable of group and the table name is gid
how to pass parameter value into query in spring boot for join column?
879 Views Asked by Sarthak Shinde At
1
There are 1 best solutions below
Related Questions in SPRING
- HTTPS configuration in Spring Boot, server returning timeout
- Multi Tenancy in Spring - Partitioned Data Approach
- How to create beans of the same class for multiple template parameters in Spring
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Springboot: How to get an entity optional property and check null?
- How do I propagate the current SecurityContext to my @RabbitListener in Spring Boot?
- Spring's XML based bean configuration for Object Mapper's Case Insensitive property
- Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. I'm using Postgresql
- springboot class org.hibernate.mapping.Bag cannot be cast to class org.hibernate.mapping.SimpleValue
- Issue while deploying JDK 17 and Spring 6 application in Tomcat 10.1.20
- Spring JPA Data Auditing - How to design it?
- Springframework test: Async not started
- Error: Cannot invoke "jakarta.servlet.http.HttpSession.getAttribute(String)" because "session" is null
- How does spring-retry determine which methods to retry when @Retryable is placed at the class level?
- problem with edge server registration in Eureka
Related Questions in JPA
- Hibernate SQL Error: Missing FROM-clause entry for table "th1_1"
- JPA Hibernate OneToOne Mapping
- Problem While Fetching the Entity data and its related Entity data with JPA(Lazy Initialization Exception)
- Why does Hibernate execute two SELECT queries instead of one when using @ManyToOne(fetch = FetchType.EAGER)
- JPA Two primary key at owning side and One Foreign Key at the Child
- Approaches to persist enum in java
- Problem with inserting objects into database that have composite ids
- Unique index or primary key violation Spring JPA
- Concurrently open statements
- JPA SPECIFICATION WITH INTERFACE PROJECTIONS
- Conditional uniqness
- Spring JPA + Hibernate + Rest services + long time transactions
- JPA/Hibernate JpaSystemException: identifier of an instance of X was altered from Y to Z
- How to Revert Database Changes Made in a Session Without Using Transaction Management?
- Hibernate generic type handling
Related Questions in SPRING-DATA-JPA
- How to create jasper report in spring boot rest api with jpa
- Hibernate SQL Error: Missing FROM-clause entry for table "th1_1"
- Is there a way to fetch Associated Entity from second level Cache instead of hitting the DB in Hibernate?
- Spring JPA Data Auditing - How to design it?
- How to insert values from two forms (spring boo)t into same row in SQL database row
- The return type is incompatible with '@NonNull Page<M>' returned from PagingAndSortingRepository<M,String>.findAll(Pageable)
- Spring Data Mongo Property Expression Query not returning any results
- Spring Boot JPA (HSQLDB): INSERT using SELECT from data.sql, unexpected token: SELECT
- Javers in microservice architecture
- Not able to fetch results based on OrderBy using CriteriaBuilder
- Apply a common criteria to all Spring JPA repository methods
- Concurrently open statements
- Spring Java API returning byte[] variable with ""
- Returing List vs Set of Entity in Spring Data JPA
- What is the best way to validate that a foreign key is valid with Spring Data?
Related Questions in JOINCOLUMN
- Multiple JoinColumns pointing to the same non-pk columns
- Spring JPA: How to force a foreign key constraint validation when using just @JoinColumn and not a full blown @ManyToOne
- cant understand @joincolumn(name="user_id")
- How to configure Hibernate @JoinColumn on another table with foreign key reference differs from PK
- How to fetch records from entities having join in it
- How to force @JoinColumn columnDefinition to ignore referenced columnDefinition
- Java Spring @JoinColumn with nvarchar and numeric Spring 3
- How to @joincolumn key from table a with foreign key in table b in JPA/Spring
- in spring boot how to insert Data to joined table after joining two tables
- Split a column in SQL
- hibernate @joincolumns with insertable true not allowing insert
- Hibernate/JPA: ManyToOne to behave as LEFT OUTER JOIN instead of foreign Key
- Hibernate: ManyToOne / multiple join columns with one column nullable=true
- On which side must I define a @JoinColumn annotation for a @OneToOne relationship like this?
- @joinedcolumn not correctly mapped by hibernate
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In this case [1]: https://i.stack.imgur.com/dpt7e.png the first query cannot work because you are returning a different data type than the one indicated by the function
And in the second case [1]: https://i.stack.imgur.com/8DuZ6.png you are using a like operator for a Long data type, which is not possible.
Try something like this:
I also don't understand why you try to make the union with g_id instead of with group.id
I really think the code you need is this: