commit
This commit is contained in:
8
scripts/create_entity.sql
Normal file
8
scripts/create_entity.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
select '@Column({ name: '''||column_name||''' })'||CHR(13)||
|
||||
LOWER(column_name)||': '||
|
||||
case when user_tab_columns.data_type = 'NUMBER' then 'number;'
|
||||
when user_tab_columns.data_type = 'DATE' then 'Date;'
|
||||
else 'string;' END ||CHR(13)
|
||||
FROM USER_TAB_COLUMNS
|
||||
WHERE TABLE_NAME = 'PCPEDITEMP'
|
||||
order by user_tab_columns.column_id;
|
||||
Reference in New Issue
Block a user