Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter name

type

Info

separator

string

mandatory - can be ',' or ';' or 'anything'

skipFirstLine

boolean

optional - default value = false - allow to skip the first line of the CSV file

 

 

This annotation is associated to the root class of the model and must be declared one time.

case 1 : separator = ','

If the record represents orders, then this annotation is added to the Order class like this :

Code Block
@CsvRecord( separator = "," )
public Class Order {
...
}

case 2 : separator = ';'

Code Block
@CsvRecord( separator = ";" )
public Class Order {
...
}

case 3 : separator & skipfirstline

Code Block
@CsvRecord(separator = ",", skipFirstLine = true)
public Class Order {
...
}

Annotation name

Record type

Level

Link

all

Property

...