Comments (3)
You are right, AbstractCsvDataProvider
was developed with files in mind and is neglected since then. In our projects we use a custom DataProvider for CSV files from resources.
This change won't be as easy as it seems, because the AbstractCsvDataProvider should still provide the ability to read all CSV files from a whole directory.
I guess I will split the functionality into two parts:
- A DataProvider where I can map columns to properties.
- A ColumnReader with different implementations.
That way I can either read the columns from a single CSV file (from an URL), from a directory, or even from an Excel file without having to change the DataProvider.
from org.fastnate.
This is still work in progress, so I decided to push it to version 1.5.0
from org.fastnate.
It took some while, but there is now an API to parse files from the class path or even from other URLs. The CSV support has moved to the fastnate-csv
module. Check OrganisationData.java from the fastnate-examples project for the usage of the new API.
If you still need to read the file from an URL, you can use importer.importFile(new UrlDataFile(url))
.
from org.fastnate.
Related Issues (20)
- ArrayIndexOutOfBoundsException when using SINGLE_TABLE and ConnectedStatementsWriter HOT 1
- Support @Resource in DataProvider HOT 1
- Support spatial properties
- Support java 8 local time api HOT 2
- ConnectedStatementsWriter does not respect autocommit=false of given connectionn HOT 1
- Support for Hibernate property "globally_quoted_identifiers" HOT 1
- Fastnate generating table even if Hibernate does not. HOT 2
- Attribute name bug on mapped property HOT 3
- InheritanceType.JOINED bug HOT 5
- AssociationOverride with JoinColumns defined in the JoinTable are ignored HOT 1
- Schema name doesn't get appended in the SQL statements HOT 6
- Fastnate - Spring Boot Generate the whole schema based on the entities HOT 6
- Support to create Liquibase XML file HOT 1
- Support annotation GenericGenerator HOT 4
- Support Embeddable in Collection of Embeddables HOT 1
- [Question] Is there anyway to do it using gradle instead? HOT 1
- [Question] Is it possible not to generate te relations? HOT 1
- DiscriminatorColumn+ DiscriminatorValue: A value for B_TYP was assigned twice HOT 2
- [Question] Is it possible to force write entities which already have an id? HOT 4
- Can't override table of an @ElementCollection HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org.fastnate.