Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] API to fetch table column defintions

There is no JPA API, but EclipseLink defines an API getColumnInfo() in
SchemaManager which you can create using a EclipseLink Session obtained from
your EntityManager.

You could also use the JDBC getColumnInfo API directly.

Kiran Kumar Gubbi wrote:
> I need to validate the data before submitting to database.  To validate I
> have to get the table column size and type.  Is there an JPA API to get
> the table column definitions. One this is that we are not defining the
> column sizes in our entity annotation. The table ddl scripts are created
> by oracle administartor.

----- James Sutherland
 EclipseLink ,
Wiki: EclipseLink , TopLink 
Forums: TopLink , EclipseLink 
Book: Java Persistence 
Blog: Java Persistence
View this message in context:
Sent from the EclipseLink - Users mailing list archive at

Back to the top