• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Data JPA

 
Niall Loughnane
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • 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
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic