Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » JPA NamedQuery Result(returning partial list of Class fields)
JPA NamedQuery Result [message #502856] Thu, 10 December 2009 00:04 Go to next message
Larry  is currently offline Larry Friend
Messages: 30
Registered: December 2009
Member
I would like to create a named query that returns only a few fields of an Entity.

Something like this "select emp.name,emp.id from Employee emp".

I would like to get back an instance on Employee with just those fields filled in. Is this possible?? It seems pretty cumbersome to have to use "List<Object[String,int]>" .

Thanks for the help.
Re: JPA NamedQuery Result [message #503033 is a reply to message #502856] Thu, 10 December 2009 16:12 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
Hi Larry,

This question is probably better suited for the EclipseLink forum - http://www.eclipse.org/forums/index.php?t=thread&frm_id= 111.

Thanks,
Neil
Previous Topic:resync Tables to Entities?
Next Topic:Run JPA Project without Server
Goto Forum:
  


Current Time: Tue Mar 19 11:26:39 GMT 2024

Powered by FUDForum. Page generated in 0.02245 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top