Comments (7)
Any updates? Is Orika buggy and dead?
from orika.
It's not dead but time is a limited resource sorry if you're issue got ignored but you can also try the pull request, it's more helpful than the last comment :)
from orika.
I finally figured out, why Orika refused to map all fields in our test-case. Per default Orika only maps the fields declared in the target class (B.class
). Fields declared in a class, which is implementing or extending B.class
are being ignored. In order to change this behaviour you need to add favorExtension(true)
, e.g. mapper.classMap(A.class, B.class).favorExtension(true).byDefault().register()
.
I am still trying to find out, why Orika refuses to use the custom mapper, when PersistenceEntity.class
is used in our test-case.
from orika.
@hohwille the link is not available anymore.
the issue is still valid?
from orika.
I think this is still an issue.
@Component
class MatrixAccountDataMapper {
def configure(MapperFactory mapperFactory) {
mapperFactory.classMap(MatrixAccountLookup.class, PlanTradeConfirm.class)
.byDefault()
.register()
}
}
Exception thrown when calling mapperFacade.map()
...
java.lang.IllegalAccessError: tried to access class sun.misc.Launcher$AppClassLoader from class sun.misc.Orika_AppClassLoader_AppClassLoader_Mapper37836166146992$4
from orika.
After removing byDefault()
and adding in explicit field()
methods/builders, it works as expected.
from orika.
Adding exclude("metaClass")
and byDefault()
works. Was shown by a coworker, but not sure exactly why that fixes it. I am mapping between two JPA entities in my example. Additionally, these are Groovy classes, so that probably has something to do with it.
from orika.
Related Issues (20)
- ScoringClassMapBuilder generated the wrong map
- Problems with Java 17 HOT 20
- Orika cannot find correct converter with class type define equals to compare typekey HOT 3
- can not converter source list to destination list with same enum property
- Workaround for multiple CustomConverters with the same (could be anonymous) classes.
- Integer how to map thrift TEnum
- Thank you for replying to the question about converting Java objects from map
- NPE while mapAsList invocation
- bean has list<Map> can't do trans completed! HOT 2
- Wrong ObjectFactory generated when destination object has no args and all args constructor HOT 1
- Provide built-in support for type com.fasterxml.jackson.databind.JsonNode
- Totally remove java-szieof
- Optimize MapperGenerator class so that there will be no method code length limit
- Mapping Member inner class from another simple class not working
- not support jdk17? HOT 9
- 【BUG】Generic object mapping ClassCastException occut.
- Is there gonna be any new release for the Orika core? HOT 1
- Same object with different fields?
- Is there gonna be any new release for the Orika core?
- It may not work to use generics when defining mappings in Orika
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 orika.