Using generated code
The following sections demonstrate how to use the generate ORM code with factory method persistent API.
Inserting records
1. Create persistent object with factory create method.
2. Save persistent object with save method.
The following codes demonstrate how to insert a Product record: