Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Can we dosover the fields in a table using eclipse link?
Can we dosover the fields in a table using eclipse link? [message #387447] Fri, 01 May 2009 20:42 Go to next message
Ajay Kumar is currently offline Ajay KumarFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,
If there is any way to discover the field type for a given table using
eclipse link.

For example

Employee table has a column "emp_id" which is integer type.
Another column "fname" as first name.

Is there any mechanism in eclipse link so that I pass the name of the
table and I get back all the field names/types etc contained in that table.

Thx
Ajay
Re: Can we dosover the fields in a table using eclipse link? [message #387449 is a reply to message #387447] Mon, 04 May 2009 13:21 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

There are some methods on SchemaManager in the tools package, such as
getTableInfo(), getColumnInfo() that gives schema info. These are just
wrappers for the JDBC meta-data API's, so you could just use JDBC as well.

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


James : Wiki : Book : Blog : Twitter
Previous Topic:Support for views in eclipse link
Next Topic:DDL generation with WriteTransformer
Goto Forum:
  


Current Time: Mon Mar 30 19:54:52 GMT 2020

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

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

Back to the top