Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Support for views in eclipse link
Support for views in eclipse link [message #387443] Thu, 30 April 2009 03:01 Go to next message
Ajay Kumar is currently offline Ajay KumarFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

A question regarding the support of views in eclipse link.

1) As the way we have the support for creation of the tables, do we have
the same support to create the view in database?

2) If not than what is the best way to support the view in eclipse link.
i) Create view using native sql
ii) Than create a mapped entity with that view? In that case does the view
is treated like any other table in eclipse link?

Any other way to support view using eclipse link.

Additional info: This view I wish to create out of a table which is
created using eclipse link (not in orm.xml)

Thx
Ajay
Re: Support for views in eclipse link [message #387446 is a reply to message #387443] Thu, 30 April 2009 13:15 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

You can map an object to a view the same as you map an object to a table.
EclipseLink will not create the view for you, you will need to create the
view yourself, either through a native query, or using any DBA or database
schema tool.

---
James
http://www.nabble.com/EclipseLink---Users-f26658.html


James : Wiki : Book : Blog : Twitter
Previous Topic:Problem while executing the stored procedure
Next Topic:Can we dosover the fields in a table using eclipse link?
Goto Forum:
  


Current Time: Wed Apr 01 21:50:21 GMT 2020

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

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

Back to the top