|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. > ----- http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland http://www.eclipse.org/eclipselink/ EclipseLink , http://www.oracle.com/technology/products/ias/toplink/ TopLink Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink , http://wiki.oracle.com/page/TopLink TopLink Forums: http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , http://www.nabble.com/EclipseLink-f26430.html EclipseLink Book: http://en.wikibooks.org/wiki/Java_Persistence Java Persistence Blog: http://java-persistence-performance.blogspot.com/ Java Persistence Performance -- View this message in context: http://old.nabble.com/API-to-fetch-table-column-defintions-tp30613632p30653778.html Sent from the EclipseLink - Users mailing list archive at Nabble.com.
Back to the top