
You have created the carpool application in SAP NetWeaver Developer Studio. It is listed in the Composite Application Explorer view.
In the following section, you create business object nodes and their attributes for:
Creating Business Objects
The business object name must not contain any special characters or spaces between letters.
The business objects you have created appear under the Business Objects node.
Creating Attributes
. The new attribute appears under the Structure Fields list.
The information you need is listed in the tables below.
Business Object Node: Employee
| Field Name | Data Type | Key | Cardinality |
|---|---|---|---|
|
id |
primitive.LONG |
Yes |
1..1 |
|
lastName |
primitive.STRING |
No |
0..1 |
|
firstName |
primitive.STRING |
No |
0..1 |
|
|
primitive.STRING |
No |
0..1 |
Business Object Node: TravelLocation
| Field Name | Data Type | Key | Cardinality |
|---|---|---|---|
|
id |
primitive.LONG |
Yes |
1..1 |
|
name |
primitive.STRING |
No |
0..1 |
Business Object Node: Travel
| Field Name | Data Type | Key | Cardinality |
|---|---|---|---|
|
id |
primitive.LONG |
Yes |
1..1 |
|
startDate |
primitive.DATE |
No |
0..1 |
Defining Associations Between Business Object Nodes
with the quick info text Add Association.Business objects can have associations to other business objects. They are listed as data types in the Travel table below.
Business Object Node: Travel
| Field Name | Data Type | Key | Cardinality |
|---|---|---|---|
|
keeper |
Association to Employee |
No |
NONE_TO_ONE |
|
Passenger |
Association to Employee |
No |
NONE_TO_ONE |
|
startLocation |
Association to TravelLocation |
No |
NONE_TO_ONE |
|
targetLocation |
Association to TravelLocation |
No |
NONE_TO_ONE |
with the quick info text Save application.