Questions tagged [query-derivation]

Query derivation is the process of creating a query (SQL, JPQL or any other query language) from some other structure, e.g. the name of a repository method as done in Spring Data.

3 questions
1
vote
1 answer

Spring Data JPA - Method Name - @ManyToOne

I have an entity CpoPipeline with a relationship ManyToOne with CpoEnvironment: @Entity @Table(name = "cpo_pipeline", catalog = "cup_orchestrator") public class CpoPipeline implements java.io.Serializable { private String pipelineId; private…
0
votes
1 answer

Sprig Data derived method name with "parameter in collection attribute"

I've got this JPA entity @Entity @Table(name = "Todos") public class Todo { @Id @GeneratedValue private Long id; ... @CollectionTable(name = "Doers", joinColumns = @JoinColumn(name = "id")) @ElementCollection(targetClass =…
Thomas Escolan
  • 1,298
  • 1
  • 10
  • 28
0
votes
1 answer

Spring data jpa method query findWith

Lately, I have come across this Spring Data JPA repository method findWithBooksById. The two classes involved are very basic: Library one-to-many Books, and the method is querying for a library and its books. I looked at…
Bob12
  • 13
  • 3