slemesle / selma Goto Github PK
View Code? Open in Web Editor NEWSelma is Stupid Simple Staticaly Linked Mapper for Java.
Home Page: http://selma-java.org
Selma is Stupid Simple Staticaly Linked Mapper for Java.
Home Page: http://selma-java.org
In the provided examples there is no sample for the custom mapper (that I could find) the documentation is understandably very limited but that makes the feature unclear ...
The current Factory system uses reflection to call class constructors, so it will only fail at runtime.
This is BAD, we should find another way.
adding a beanConstructorParam to the Mapper annotation or support for annotated parameter in the mapping signature should do the Job.
We should be able to map field named "a" to field named "b"
For custom mapper class, it should possible to define mapping as instance method and not only as static one.
Compilation should fail when fields in destination bean are note populated with a pretty error message.
The mapper should be able to map n-dimensions array.
this behaviour should work for both primitive and boxed type.
isBoolean -> setBoolean
getBoolean -> setBoolean
it should be possible to define a default value for enum conversion when in enum values does not fit in out enum.
public enum In {
VAL_1,VAL_2,VAL_3,VAL_4
}
public enum Out {
VAL_1,VAL_2
}
at least default missing values to null.
The idea here is to list the properties Selma can ignore on mapping code generation.
Given an interface with two listed methods, let say:
public interface FailingMapperGeneratedCode {
PersonOut asPersonOut(PersonIn in);
AddressOut asAddressOut(AddressIn in);
}
Where Person beans has a property address, Selma should use asAddressOut method for mapping instead of generating another one.
The mapping code generation should not use fields.
Build a system avoiding cyclic mapping, to avoid infinite loop.
In situation where two references them each other.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.