Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » ReadOnly object with NativeQuery
ReadOnly object with NativeQuery [message #653923] Fri, 11 February 2011 21:30 Go to next message
Fericit Bostan is currently offline Fericit BostanFriend
Messages: 68
Registered: June 2010
I'm using EclipseLink 2.1 and have a use case for returning an object that would be a ReadOnly view of the data. The NativeQuery would consist of joining approximately 6 tables or more and would only return select fields from those tables to populate the object. I would prefer to use the Criteria API as the object can be queried by PrimaryKey or sets can be returned based upon other matching criteria.

Is there a good example of this type of mapping or can you point me to the documentation that might outline this?

Re: ReadOnly object with NativeQuery [message #654196 is a reply to message #653923] Mon, 14 February 2011 14:52 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

There is some info on querying in JPA here,
Previous Topic:Eager OneToOne relationship not using JOIN
Next Topic:Programmatically obtain SQL statements emitted by EclipseLink
Goto Forum:

Current Time: Tue Mar 28 16:03:16 GMT 2017

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

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