Re: [mdr-users] How does work the consistency rules in a metamodel?
Martin Matula <[email protected]> Wed, 15 Feb 2006 15:16:32 +0100
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <[email protected]> |
You can use refVerify() on an object or even a whole extent, if you want to verify its validity. You simply call object.refVerify() - this operation will throw ConstraintViolationException if some deferred constraints are violated. Constraints like lower bound (in the multiplicity) are deferred because otherwise you would not be able to remove an old and add a new link into an association with 1..1 multiplicity at one end. Regards, Martin [email protected] wrote: > Martin, > > What moment should I to use the refVerify()? Can you send me a example? > > Thanks, > > Luiz Felipe