Composite Key and spring-data-jdbc
问题 I have a database which is using composite keys. Is it possible to utilize spring-data-jdbc? I tried the milestone version 1.1M2 where I mapped my entity in the following way: class History { @ID @Embedded private CompositeHistoryID id; } Then in my repository class, I added HistoryRepository extends Repository<History,CompositeHistoryID >{ History findByhId(CompositeHistoryID id) } I traced the SQL, and it did not work. The embedded part worked, but the where clause was not correct. It was