Questions tagged [mybatis-mapper]

67 questions
0
votes
0 answers

Ibatis map List into @Result

I have a situation like, i write query in Mapper java class (Ibatis) to fetch List values. Inside this ParentPojo i have List along with that some other fields like num, name. ChildPojo contains field as a1,a2,a3. Sample ParentPojo: private String…
user2000189
  • 479
  • 4
  • 6
  • 22
0
votes
1 answer

after first time myBatis generator getting lots of "cannot be resolved to a type"

launched for first time myBatis generator using this instructions: https://mybatis.org/generator/running/runningWithEclipse.html this is my generatorConfig.xml
Falco
  • 1,458
  • 3
  • 19
  • 47
0
votes
1 answer

How can I add condition clause not required if element?

Let's say I have an interface look like this. @Mapper interface UserMapper { List search(@Nullable String namePattern, int minAge); } How can I do with the minAge parameter which is not required the element? Should I just do with…
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184
0
votes
1 answer

function countByExample mybatis-generator help me

I have a problem, in my picture. I use mybatis and countByExample method was generated by MyBatis Generator. Can u help me and see it? https://i.stack.imgur.com/e3arE.png https://i.stack.imgur.com/WOp1f.png
dungtran
  • 15
  • 6
0
votes
1 answer

The Mapper conflicts with itself?

I have a message when trying to run the JBoss server with app with two myBatis mappers XML fragments parsed from previous mappers already contains value for workSql The funny moment is that the sql element workSql is in one only mapper. And exists…
Gangnus
  • 24,044
  • 16
  • 90
  • 149
-1
votes
1 answer

Equals() returns false on 'Y' but returns true on 'Yes'

I'm doing an if statement in mybatis, and returns false even when the param is "Y", but returns true when the param is "Yes", why is this?
Rivaldo
  • 33
  • 5
-1
votes
1 answer

Mybatis property mapper error for List of objects in pojo class : spring Boot/mybatis

Please help : Issue description in below image URL, Issue description in below image URL, even setting property to cost/margin/retail or currentday also not working in mapper interface, Let me know, if i need to follow anything else? [1]:…
1 2 3 4
5