aspose file tools*
The moose likes Spring and the fly likes Spring Data JPA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Data JPA" Watch "Spring Data JPA" New topic
Author

Spring Data JPA

Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 208
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

Joined: Feb 05, 2001
Posts: 17257
    
    6

[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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Data JPA