Thursday, October 29, 2009

How to make a domain

A domain is used for making your own data type with your validation to do this:
- Right click in the package then choose New.
- Choose ADF Business Component then choose Domain.
- Enter the package and the name of the domain.
- Choose data type then finish.
- After creating a domain open the generated domain java class.
- Enter you validation in validate() method.
- There is a generated object 'mData' this object contain the data which you enter.
- Go to the attribute in any entity from type choose your domain.

No comments:

Post a Comment