• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

Spring Data JPA

 
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

is it possible in Spring Data JPA to query by a domain field name and field value?

if i have a domain class called Person with fields:
* name
* address
* dob

is it possible in Spring Data JPA to query by (findAll) that have a field 'name' and field value 'Murph',

Thanks,

Niall
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[quote=Niall Loughnane]Hi,

is it possible in Spring Data JPA to query by a domain field name and field value?

if i have a domain class called Person with fields:
* name
* address
* dob

is it possible in Spring Data JPA to query by (findAll) that have a field 'name' and field value 'Murph',

Thanks,

Niall[/quote]

Please explain more.

But my response is. Can you do that in SQL, regardless of Spring Data JPA or JPA? I don't think so, if I understand you correctly.

Mark
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic