How To Generate A Model From CSV File

This guide will show how to generate a model from csv file, this feature available starting from 4.6 version.

For this demo, we will use Fininq2 model, both the cbl and csv files are attached at the end of the guide.

Requirements

Step By Step Guide

  1. Move the csv file inside the project path, for example to src/main/resources/sample.

     

  2. Right click on csv file → OpenLegacy-> Generate Model. A pop up will appear.

  3. Click Ok, check Generate JUnit Test checkbox if needed.

  4. Now inside src/main/java you should see a generated model.