Comments (3)
Hi
- Please send me a unit test reproducing an error. I never encountered
such an error. - Sorry but I could not understand your intentions. Please send concrete
sample classes. Suppose you can use expressions to implement your
requirements.
11 Авг 2015 г. 9:04 пользователь "nishantoo7" [email protected]
написал:
we are new to nomin mapping, we are are very much interestaed to use this
nomin mapping in our project. when we use nomin we are facing some issues.
please find below.
- we are geeting permgen space error frequently when we invoke the code
via nomin mapping. when we map thease things via normal java code we are
not facing this issue.- we have 2 child classes for one parent. how are we going to typecast to
specific child. ex:- B and C classes are extending A class.—
Reply to this email directly or view it on GitHub
#14.
from nomin.
We have the Object hierarchy as below:
Claim is the Parent
Claim has list of Party
A Party can be a Person or Organization.
Party has a list of Roles
Party also has a list of PartyAddress (“Many to Many” in such a way that a same address can be assigned to many Parties)
PartyAddress is an Address
Address has an Email and Telephone (both entities)
So when we start with Claim and do the mapping between our DTO and Entity objects, we are trying to do as:
• We have groovy files for: Claim, PartyAddress, Party, Address, Email, Telephone
• Trying to initialize nomin like
NominMapper nomin = new Nomin("Claims.groovy","Party.groovy",
"Telephone.groovy",
"Address.groovy",
"ClaimParty.groovy","ClaimsPartyRole.groovy","email.groovy",
"PartyAddress.groovy",
"ClaimPartyType2Organization.groovy");
• In the groovy files, we havethe mappings of the attributes
When the application tries to initialize the Nomin mapper as above, it encounters an outofmemory PermGen error.
Is Nomin able to do such 6-7 levels of mapping (complex data structure)? Have you or someone else encountered such scenarios before?
Please help with recommendations.
-
Claim has a list of Parties
A Party can be a Person or Organization.
Person extends Party
Organization extends Party
How do we make Nomin figure out what type a Party is and so get that mapped to a Person object or an Organization object (based on the kind) dynamically?
We would get the request as a Party object which needs to be mapped to either Person or Organization based on an attribute (Party_Kind).
Please help.
from nomin.
Hi nishantoo7. Concerning your permgen issue, could it be so that you create NominMapper instance each time you perform mapping?
from nomin.
Related Issues (20)
- How to conver Map to Object
- Hierarchical mapping issue HOT 6
- Nomin produces memory leaks in SpringContext. HOT 5
- Mapping for classes without default constructors HOT 4
- ContextMap HOT 1
- how to map to element to element mapping while using Map HOT 4
- Mapping lists resulting in empty list HOT 3
- String to date conversion is always lenient HOT 3
- Multi-level mapping with different contexts - possible? HOT 1
- Mapping list of objects with discriminators to polymorph list of objects HOT 1
- deep cloning/mapping HOT 1
- Any way to have different introspectors for two sides? HOT 3
- Problem with Exploding Introspector + Automap + Synthetic Property HOT 3
- Issue mapping between primitives and wrappers HOT 4
- Version 1.1.5 jar still not on Maven Central HOT 1
- Date Conversions to custom Date type HOT 10
- Regression in conversion with maps HOT 2
- Mapping from Bean to Map with type hint does not use conversion/preprocessing
- Problems with using closures in Groovy 2.5 HOT 4
- ParsedMapping thread local cache might lead to wrong results across different Nomin instances
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 nomin.