Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set default value for a ViewObject attribute

398505Jul 22 2003 — edited Feb 18 2004
I have an Entity name RISKCONTROLRULES which have a field name TYPE.

I created 2 VO (SINGLECONTROLRULES and ACCUMULATECONTROLRULES), these two VO are created from RISKCONTROLRULES entity.

What I wanna do is that everytime I create a new record by SINGLECONTROLRULES vo, TYPE value will be set by default to 'S' and vice versa, for the ACCUMULATECONTROLRULES vo, TYPE value will be 'A'.

I had already checked the Discriminator option and typed the default values for the two vo and the entity but it didn't work.

Did I miss something else ???

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2004
Added on Jul 22 2003
5 comments
624 views