Search code examples
databasespring-bootibatisspring-mybatismybatis-mapper

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]: https://i.sstatic.net/uPI7p.png

Solution

  • You can't map a nested object in Mybatis; you have to write multiple queries to achieve this or switch to Hibernate.