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
CSV file following format described in CSV parser guide https://openlegacy.atlassian.net/wiki/spaces/RDKB/pages/912490501 .
Step By Step Guide
Move the
csv
file inside the project path, for example tosrc/main/resources/sample
.Right click on
csv
file →OpenLegacy
->Generate Model
. A pop up will appear.Click
Ok
, checkGenerate JUnit Test
checkbox if needed.Now inside
src/main/java
you should see a generated model.