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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 203
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: 17249
    
    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
 
Similar Threads
building a search feature in my application, what is the best approach
which technology
XML name space error in Spring data JPA hibernate applicationContext.xml
Spring Data JPA
Can a JPA entity have a field not mapped to a DB column?