I am trying to write a csv file from scala case class using fixed length file BeanIO library.
sample code
case class employee(id:String,name:String,dob:String)
<record name="emp" class="employee">
<field name="id" position="0" length="5" getter="#1" setter="id"/>
<field name="name" position="5" length="5" getter="#2" setter="name"/>
<field name="dob" position="10" length="5" getter="#3" setter="dob"/>
</record>
But I want to avoid dob from writing in the csv file. If I removed that line from xml, it will throw error
Could anyone suggest any way to do that other than removing it from case class or make field length as "zero".