Coder Social home page Coder Social logo

projectmapk / kmapper Goto Github PK

View Code? Open in Web Editor NEW
47.0 2.0 1.0 522 KB

Object to Object mapper Libraly for Kotlin.

Home Page: https://jitpack.io/#ProjectMapK/KMapper/

License: Apache License 2.0

Kotlin 99.29% Java 0.71%
kotlin mapper reflection beanmapper kotlin-library jitpack kotlin-jvm

kmapper's People

Contributors

k163377 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

Watchers

 avatar  avatar

Forkers

k163377

kmapper's Issues

Can KMapper work with non data classes ?

Hello again,

I try to use KMapper with Spring to map some Data Transfer Objects to JPA entitites.
I have an issue as a JPA Entity cannot be declared as a data class (this is a limitation of the Spring framework).

Is there any chance that KMapper would work with standard classes ?

I currently end up with following error:

com/mapk/core/KFunctionForCallKt
java.lang.NoClassDefFoundError: com/mapk/core/KFunctionForCallKt
	at com.mapk.kmapper.KMapper.<init>(KMapper.kt:27)
	at com.mapk.kmapper.KMapper.<init>(KMapper.kt:26)

Thanks & regards,
Renaud

KMapper for copy constructor (Question / Feature request)

I am currently looking for a Kotlin object mapping framework as this one, which looks great by the way !

With all framework I looked at, I miss the following functionality : mapping for copy constructor

  • Let's say I have 2 data classes A and B
  • This framework allows me to create an instance of A from an instance of B
  • I'd also like to be able to copy A instance updated with non-null properties of B instance.

Creation and copy mapping rules would be identical.

Do I miss an obvious way to achieve this ?
Or would it be interresting to add such functionality ?

Thanks & regards,
Renaud

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.