To create the ATL data class and write the ensure method, follow these steps:
- Open the ConVMSVehicleTableCar table and generate a specification, followed by a query class. Add all the fields and the ConVMSVehicleGroup relation. You should have created an entity class already, but if not, create one.
If you make a mistake, you can regenerate the class so that you can change the generated code.
- Next, we will create a data class for the ConVMSVehicleTableCar table by creating a new class named AtlDataConVMSVehicleTableCar. The class declaration should be as follows:
public final class AtlDataConVMSVehicleTableCars extends AtlDataNode{ // add any constants required for default values here const ConVMSVehicleId defaultVehicleId ...