select col.TABLE_NAME,replace(initcap(col.TABLE_NAME),'_', '')
, 'private '||decode(k.DATA_TYPE, 'VARCHAR2', 'String', 'NUMBER', 'java.lang.Integer', 'DATE', 'java.sql.Timestamp','CHAR', 'String', k.DATA_TYPE)||' '|| lower(col.COLUMN_NAME)||';//'||com.comments
, '<property name="'||lower(col.COLUMN_NAME)||'" column="'||lower(col.COLUMN_NAME)||'" type="'
||decode(k.DATA_TYPE, 'VARCHAR2', 'java.lang.String', 'NUMBER', 'java.lang.Integer', 'DATE', 'java.sql.Timestamp','CHAR', 'String', k.DATA_TYPE)||'"/>'
from user_tab_columns k , user_tab_columns col
inner join user_col_comments com
on col.TABLE_NAME = com.TABLE_NAME
and col.COLUMN_NAME = com.COLUMN_NAME
and com.table_name like '%T_JC_NEW_ZFCG_%'
and replace(initcap(col.TABLE_NAME),'_', '') like '%TJcNewZfcgZjjbxx%'
where k.TABLE_NAME=col.TABLE_NAME and k.COLUMN_NAME=col.COLUMN_NAME and k.COLUMN_ID=col.COLUMN_ID
order by col.TABLE_NAME, col.COLUMN_ID