
You can use the models defined in the storage development component in the servapp development component. To do this, you must define the imported model classes as public.
We recommend that you create separate development components for models and the application logic.
Click the model that you imported ( ServiceModels ) with the secondary mouse button and choose Add to Public Part .
The Add Entities to Public Part window appears.
Choose New.
In the Name field, enter Modelspublic
The Purpose field must be of the Compilation type.
However, the Purpose field can have any of the following three values:
Compilation - Choose this option whenever the objects from the public part of the DC being used are also required for compiling in the DC. Using the Component Build function, the DC bundles together these objects in a separate JAR archive.
Assembly - Choose this option if you want to bundle the objects from the public part in the DC being used to a larger DC. This is possible together with the DCs used, and then the DC is deployed - but not in a separate archive.
The public part in this case is not required for compiling the DC used.
Infrastructure - This option is not of relevance for Web Dynpro DCs. It is only important for plug-in developments.
Choose Finish.
Select Modelspublic , and choose Next.
Choose Finish.
Choose
Select Development Infrastructure and choose OK.
From Component Browser, expand and select s ervapp.
In ComponentProperties, select the Dependencies tab.
In Required DCs, choose Add.
The Adding Dependencies wizard starts.
Expand and choose storage.
Choose Next.
In the Required New DCs, select Modelspublic, and choose Finish.
Choose
Select Applications for Laptops and choose OK.