Creating the NewsCategory business object
Follow these instructions to create, in the eMerged_Library library, the NewsCategory business object which has these attributes:
id (integer)
name (string)
From the menu, select
File > New > Other
. The
New
window opens.
In the navigation tree, click
Business Integration > Business Object
.
Click
Next
.
From the
Module
list, click
eMergedLibrary
. The
Inherit from
field is set to
<none>
.
In the
Folder
field, type
com.emerged.portal
.
In the
Name
field, type
NewsCategoryBO
.
The
Namespace
field is set to
http://eMergedLibrary/com/emerged/portal
.
Click
Finish
. The editor opens for
NewsCategoryBO
.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
id
.
In the
Type
list, type
int
.
From the list, click
int
.
Switch to the NewsCategoryBO editor.
Click the
Add an attribute to a business object.
button
.
Switch to the Properties view.
In the
Name
field, type
name
.
In the
Type
list, type
string
.
From the list, click
string
.
From the menu, select
File > Save
(or press
Ctrl+S
).
From the menu, select
File > Close
(or press
Ctrl+F4
). The editor closes for
NewsCategoryBO
.
Parent topic:
Creating interfaces and business objects
Previous topic:
Creating the BankAccount business object
Next topic:
Creating the NewsArticle business object