*
The moose likes EJB and other Java EE Technologies and the fly likes JPA Named query returns partial Result Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JPA Named query returns partial Result" Watch "JPA Named query returns partial Result" New topic
Author

JPA Named query returns partial Result

Purna Boyapati
Greenhorn

Joined: Feb 11, 2013
Posts: 2
i have a table PhoneModels
ID, Name , Vendor
1, iphone, Apple
2, Xperia, Sony Erricson
3, Razor, Motorola



and a corresponding named query

@NamedQuery(name = "phones.findAll", query = "select o from PhoneModels o"),

but weirdly sometimes the result of the above NamedQuery returns me partial result

ID, Name , Vendor
1, <---------------------------missing name and vendor most importantly it is SPORADIC once in 1000 times and it goes of without any change in code or server
2, Xperia, Sony Erricson
3, Razor, Motorola

this is the version we use
EclipseLink, version: Eclipse Persistence Services - 2.1.2.v20101206-r8635



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPA Named query returns partial Result
 
Similar Threads
named queries can be defined only on an entity - problem
Error in Many to Many persisting EJB3 Toplink
EJB 3 QL : join
JPA composite key mapping
Need help with Mapping(Annotation) and Composition