hello friends I have a problem when instantiating objects and this happens because the data that is being passed to the constructor is invalid but this happens because the association or the collection are not working if you could help me I would appreciate it.
i have the following
<id property='id' column='id_iniciativas'/>
<result property='descripcion' column='descripcion'/>
<result property='fecha' column='fecha'/>
<result property='estado' column='estado'/>
<association property='proponente' javaType='Usuario' resultMap='edu.eci.cvds.samples.persistence.mybatisimpl.mappers.UsuarioMapper.UsuarioResult' columnPrefix='u_'></association>
<collection property='palabrasClave' column='palabra' javaType='list' ofType="java.lang.String" columnPrefix='pa_'></collection>
and the query
` SELECT i.id_iniciativas, i.descripcion, i.fecha, i.estado,
u.correo as u_correo,
u.nombre_usuario as u_nombre_usuario,
u.nombre as u_nombre,
u.apellido as u_apellido,
u.rol as u_rol,
u.estado as u_estado,
u.area as u_area,
pa.palabra as pa_palabra
FROM iniciativas as i JOIN palabras_clave as pa on i.id_iniciativas=pa.iniciativas_id_iniciativas
JOIN usuarios as u ON i.proponentes_usuarios_correo=u.correo
WHERE i.id_iniciativas=#{idin};`
Comment From: unjie
I have encountered this problem
Comment From: harawata
There is not enough information. Please fill out the bug report template.
<!-- BUG REPORT FORM -->
## MyBatis version
3.x.x
## Database vendor and version
## Test case or example project
## Steps to reproduce
## Expected result
## Actual result
We need those information to reproduce the problem. And please check the preview before you post. :) Thanks!
Comment From: mairongchao
I found this problem,resultMap is not a class
Comment From: mairongchao
resultMap='edu.eci.cvds.samples.persistence.mybatisimpl.mappers.UsuarioMapper.UsuarioResult'
Comment From: harawata
@tsmairc ,
Please fill out the bug report template.
<!-- BUG REPORT FORM -->
## MyBatis version
3.x.x
## Database vendor and version
## Test case or example project
## Steps to reproduce
## Expected result
## Actual result
We need those information to reproduce the problem. And please check the preview before you post. :) Thanks!
Comment From: mairongchao
I think that isn't mybatis' bug. That is the useful of association error. The resultMap is not a class.
Comment From: kazuki43zoo
No reply from author. Please provide required information based on issue template if re-open.