Giter Site home page Giter Site logo

arnaudroger / simpleflatmapper Goto Github PK

View Code? Open in Web Editor NEW
435.0 20.0 76.0 10.58 MB

Fast and Easy mapping from database and csv to POJO. A java micro ORM, lightweight alternative to iBatis and Hibernate. Fast Csv Parser and Csv Mapper

Home Page: http://simpleflatmapper.org

License: MIT License

Java 99.55% Shell 0.20% PLpgSQL 0.11% Kotlin 0.12% XSLT 0.03%
java csv jdbc orm mapper spring sql2o jdbi

simpleflatmapper's Introduction

simpleflatmapper's People

Contributors

a8t3r avatar arlol avatar arnaudroger avatar bharrisau avatar hank-cp avatar khauser avatar scottalbertine avatar sndyuk avatar snyk-bot avatar zenios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simpleflatmapper's Issues

Ability to specify custom mapping

I want to be able to specify some mapping for columns that will take precedence if column is in the query. That should also allow to be non mapped specific to manage constants.

Ability to map object in object

MyObject {
private int id;
private MySubObject object;
}

MySubject {
String value;
}

table { id, object_value }

if MyObject contains a objectValue field that should take precedence.

Measure jOOQ with plain SQL vs. with generated code

The jOOQ benchmarks show that plain SQL is being used:

        DSLContext dsl = DSL
                .using(new DefaultConfiguration()
                        .set(dataSource)
                        .set(new SfmRecordMapperProvider()));

        ...

        List<DbObject> list = dsl.select()
                .from("TEST_DB_OBJECT").fetchInto(DbObject.class);
// "plain SQL" here   ^^^^^^^^^^^^^^^^

There is actually a known issue (jOOQ/jOOQ#3225) that appears only when the projected columns are unknown, as in your example.

Most jOOQ users, however, use the jOOQ code generator, in case of which the benchmark would probably run much faster:

        import static com.example.jooq.generated.Tables.TEST_DB_OBJECT;

        List<TestDbObjectRecord> list = dsl.select()
                .from(TEST_DB_OBJECT);

Would be interesting to see a comparison. Nonetheless, we should fix the mentioned issue, of course.

add tuple support

Tuple2, 3, 4, 5.

support array style definition
need to support index discovery

refactor builder

The builder would need a bit clean to use the same logic between csv and result set.

  • do the property lookup on add
  • do the fieldmapper or mapper specific work in the mapper() call

work in osgi container

I should be able to deploy the jar as a bundle and use it from another bundle with mapped class in another bundle.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.