Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » JPA NamedQuery Result
JPA NamedQuery Result [message #617689] 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 #617692 is a reply to message #617689] 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: Mon Jun 18 10:07:57 GMT 2018

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

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

Back to the top