Spring Projects Issues
Spring Projects Issues
**[Mark Paluch](https://jira.spring.io/secure/ViewProfile.jspa?name=mp911de)** commented Using a shared entity as `@Id` isn't a good idea, the better approach is sticking to the way the JPA spec describes. ``` @Entity public class EntityB...
**[Mauro Molinari](https://jira.spring.io/secure/ViewProfile.jspa?name=mauromol)** commented I think I never received notifications for this bug, this is why I reply only now. Why using a shared primary key should not be a good...
**[jonlondonwork](https://jira.spring.io/secure/ViewProfile.jspa?name=JIRAUSER49704)** commented Did anyone find a workaround for this problem? I have encountered the same issue with eclipselink 2.6.1 and spring-data-jpa 2.1.4.RELEASE
**[Sviataslau Apanasionak](https://jira.spring.io/secure/ViewProfile.jspa?name=slavick)** commented I tried to fix issue myself. I created pull request: https://github.com/spring-projects/spring-data-jpa/pull/391
**[Prateek](https://jira.spring.io/secure/ViewProfile.jspa?name=prateek512)** commented Is this being merge ? Can we expect fix of it now ?
**[Jens Schauder](https://jira.spring.io/secure/ViewProfile.jspa?name=schauder)** commented [Prateek](https://jira.spring.io/secure/ViewProfile.jspa?name=prateek512) The PR is not reviewed yet as you can see in the PR at GitHub
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be...
**[Jens Schauder](https://jira.spring.io/secure/ViewProfile.jspa?name=schauder)** commented If I understand correctly you want an API for generating SQL dynamically. While this is perfectly reasonable Spring Data JDBC won't offer that. The reason is that...
**[Sanghyuk Jung](https://jira.spring.io/secure/ViewProfile.jspa?name=benelog)** commented Here's the API I imagined. ```java public interface ProductRepository extends CrudRepository { @SelectProvider(type=ProductSql.class, method="select") @Query(rowMapper=ProducMapper.class) List findByName(@Param("name") String name); } ``` ```java public class ProductSql { public...
**[Jens Schauder](https://jira.spring.io/secure/ViewProfile.jspa?name=schauder)** commented Interesting. So basically one would provide a `SqlProvider` but parameter binding, execution and ResultSet-conversion would be left to Spring Data JDBC, right? How would Spring Data JDBC...