Export data to CSV files in Java

Published: 31 March 2021
on channel: vaadinofficial
13,200
97

Alejandro Duarte shows how to write CSV files from Java objects. 👇

0:00 Intro
0:09 The example web application
0:30 The domain model (entity/DTO/VO)
1:17 The OpenCSV Java library
1:31 The view (a Vaadin Grid with data)
2:11 File download logic
4:30 Transforming objects to CSV as a String
7:48 Excluding columns to export
9:10 Fixing "hash" values in the exported CSV file
10:18 Outro

Links:
Follow Alejandro on Twitter:   / alejandro_du  
Vaadin Flow quick tutorial: https://vaadin.com/docs/v14/flow/tuto...
The Grid component: https://vaadin.com/docs/v14/flow/comp...
Vaadin components and design system: https://vaadin.com/docs/latest/ds/ove...
OpenCSV project: http://opencsv.sourceforge.net

Tip: The DynamicFileDownloade­r class in the Viritin add-on simplifies the code. Try it out: https://vaadin.com/directory/componen...


On this page of the site you can watch the video online Export data to CSV files in Java with a duration of hours minute second in good quality, which was uploaded by the user vaadinofficial 31 March 2021, share the link with friends and acquaintances, this video has already been watched 13,200 times on youtube and it was liked by 97 viewers. Enjoy your viewing!