Generating Code for Application Classes
In the previous subsection (Setting Up Entity Registry), we created two entities and assigned the application classes to the entities. We now click the Generate Code button on the Entity Registry page to generate the code that can be pasted inside the PeopleCode of the application class.
To generate the code:
-
Access the Entity Registry page for the XXXShoppingCart and the XXXShoppingCartItem entities.
-
Click the Generate Code button.
-
Select the desired options and generate the code.
You can paste the generated code directly inside the application classes. You can also use the generated code as a template to add more logic as needed.