A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA/OCP Java SE 7 Programmer I & II Study Guide
this week in the
Object Relational Mapping
Getting column names from the table name
Joined: Nov 04, 2008
Jul 01, 2011 03:40:36
I want to use the expandable table in UI.
For that when user select table name I want to know the column names to show up them in the UI table.
Currently I am using the Hibernate.So I wanted to know that how to get column metadata from the table name.
The important thing is not to stop questioning.Curiosity has its own reason for existing.
Joined: Jun 30, 2011
Jul 05, 2011 05:58:15
The simple way I can suggest is define properties in the POJO properly and convert the text to upper case for the UI purpose.
I am not sure whether there is any way to get the names of columns, even if there is a way, dont apply that unnecessarily.
It is sorta covered in the
JavaRanch Style Guide
subject: Getting column names from the table name
need to get column names in resultant table of sql query
problem simply stated
parse siblings in DOM
how can i get column name of a table
getting column name
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014