GithubHelp home page GithubHelp logo

Queries on nomin mapping about nomin HOT 3 CLOSED

dobrynya avatar dobrynya commented on September 2, 2024
Queries on nomin mapping

from nomin.

Comments (3)

dobrynya avatar dobrynya commented on September 2, 2024

Hi

  1. Please send me a unit test reproducing an error. I never encountered
    such an error.
  2. 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.

  1. 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.
  2. 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.

nishantoo7 avatar nishantoo7 commented on September 2, 2024

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.

    As described in the example above,
    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.

fixxer avatar fixxer commented on September 2, 2024

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)

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.