Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 16 2022 10:39
    rguillome opened #106
  • Aug 30 2022 15:58
    luismora1224 closed #105
  • Aug 30 2022 15:58
    luismora1224 commented #105
  • Aug 30 2022 06:17
    Shryne commented #105
  • Aug 26 2022 16:11
    luismora1224 commented #105
  • Aug 26 2022 06:52
    Shryne commented #105
  • Aug 25 2022 22:37
    luismora1224 opened #105
  • Aug 23 2022 12:14
    Manikaran2105 opened #104
  • Feb 03 2022 14:02
    someshwar1 closed #103
  • Feb 03 2022 14:01
    someshwar1 opened #103
  • Feb 01 2022 10:27
    dependabot[bot] edited #102
  • Feb 01 2022 10:23
    dependabot[bot] synchronize #102
  • Feb 01 2022 10:23
    dependabot[bot] edited #102
  • Feb 01 2022 10:23

    dependabot[bot] on maven

    Bump xstream from 1.4.9 to 1.4.… (compare)

  • Feb 01 2022 10:23
    dependabot[bot] edited #102
  • Feb 01 2022 10:22

    dependabot[bot] on maven

    (compare)

  • Feb 01 2022 10:22

    avurro on master

    Bump junit from 4.12 to 4.13.1 … Merge pull request #91 from jma… (compare)

  • Feb 01 2022 10:22
    avurro closed #91
  • Feb 01 2022 10:21
    dependabot[bot] edited #102
  • Feb 01 2022 10:20

    avurro on master

    Below are changes updated xstre… update version to 1.6.2 Update pom.xml groupId: io.g… and 16 more (compare)

Farouk
@faroukelabady
Hello
Alessandro Vurro
@avurro
hi and welcome
Luigi Bifulco
@muten84
Hi
Alessandro Vurro
@avurro
hi
Maxim Kolesnikov
@xCASx
Hello Alessandro, could you please review and apply this patch: jmapper-framework/jmapper-core#49
Thank you in advance.
Eugene Tolbakov
@etolbakov

Hi @avurro ! Hi everybody!
I have a question. Consider the following

@JGlobalMap
class Dto {
    private Integer id;
    private String startDate;
    private String endDate;
    ...getters & setters
}

@JGlobalMap
class Entity {
    private Integer id;
    private Date startDate;
    private Date endDate;
    ...getters & setters
}

I try to map Dto to Entity and vice versa but see such error
error in static conversion: probably is an incompatibility of signature, the expected input fields do not match with the real ones, checks the configured class.
I've tried to work with @JMapConversion methods, but still no success.

Could you please help me with that ?

Eugene Tolbakov
@etolbakov
It seems that I've found a solution! So if you have similar issues you know whom to write:)
molexx
@molexx
Is there a way to do type safe mapping using annotations? If I use @JMap("name") I don't find out until runtime that 'name' doesn't exist.
Alessandro Vurro
@avurro
there isn't a way, because with JMapper you aren't obliged to declare the target class
you can define a name that can potentially may correspond to many classes
molexx
@molexx
Ok, thanks.
JohnWatsonDev
@johnwatsondev
@avurro Hello, buddy. Does this library support android ?
Alessandro Vurro
@avurro
@johnwatsondev no, but is on the roadmap!
Eugene Tolbakov
@etolbakov

Hi @avurro ! Hi everybody!
I have run into an issue

ERROR com.googlecode.jmapper.JMapper - ConversionBodyIllegalCodeException: There is an error in the generated method. Additional information: by javassist.bytecode.BadBytecode: vVAllAllAll (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; in myclass: inconsistent stack height -32219
java.lang.ExceptionInInitializerError

It seems that my structure has a very deep nesting and javassist failed to handle it.
I will try to decrease the nesting level, however could someone recommend me any workaround?

annakulakrishna
@annakulakrishna
Hi

I’m using JMapper in my application

When ever there is a conversation between Boolean to boolean it is throwing null pointer exception

I tried using JMapConversion and it is working now. But the problem is I have these kind of conversion ( Boolean to boolean ) in so many classes . @avurro Is there any way to specify a rule to convert Boolean to boolean?
always
Dozer does this conversion automatically
annakulakrishna
@annakulakrishna
we just moved from dozer to jmapper
Farouk
@faroukelabady
hello how about you map from Boolean to Boolean and let the java handle the autoboxing from Boolean to boolean
annakulakrishna
@annakulakrishna
@faroukelabady I’m mapping the values between my TO to another consuming service TO.
annakulakrishna
@annakulakrishna
Which is faster Mapstruct or JMapper ?
Appreciate any responses
annakulakrishna
@annakulakrishna
@avurro
@faroukelabady
Farouk
@faroukelabady
I guess make the java make the conversion through autoboxing as far as I know this is pretty well supported even if you are using something like jackson
as for who is faster , I went through my own test and found jmapper tends to be faster
but you can try it with a simple java app
just make a two simple class and then map between themone with jmapper and one with map struct and check how much time have passed for example mapping betweeb the two 1000 times
annakulakrishna
@annakulakrishna
@faroukelabady Ok Thank you 😊
sergeylaposhko
@sergeylaposhko
@etolbakov did you manage to solve the problem with deep nesting?
annakulakrishna
@annakulakrishna
@avurro @faroukelabady I want to use JMapCoversion in xml... I saw few examples but my question is x, y are variables in a class and has getters and setters. I want to use jmapconversion on x, and I want to return x only if y is true else null. So while writing this condition in xml, how can I get y variable value ?