I'd like to see static constants added to object type declarations:
create or replace type OMyObject
is object
(
MY_CONSTANT constant number(4) := 1234 -- adds CONSTANT keyword and literal value assignment
,
attribute1 varchar2(10)
,
...
)
/
exec DBMS_OUTPUT.Put_Line(OMyObject.MY_CONSTANT) -- Type constant is accessible just like a package constant/variable
/
Gerard