You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org.apache.ibatis.builder.BuilderException: Cannot use both @one and @many annotations in the same @Result
at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.hasNestedSelect(MapperAnnotationBuilder.java:522)
in code
privatebooleanhasNestedSelect(Resultresult) {
booleanhasNestedSelect = result.one().select().length() > 0;
if (hasNestedSelect) {
thrownewBuilderException("Cannot use both @One and @Many annotations in the same @Result");
It would be very useful to extend the functional annotation @one and @many
cange from
@One(select="myapp.mapper.OrgMapper.selectOrg")
to
@One(select="selectOrg", mapper=OrgMapper.class)
The text was updated successfully, but these errors were encountered:
MyBatis 3.2.6. Always generates an error
org.apache.ibatis.builder.BuilderException: Cannot use both @one and @many annotations in the same @Result
at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.hasNestedSelect(MapperAnnotationBuilder.java:522)
in code
It would be very useful to extend the functional annotation @one and @many
cange from
to
The text was updated successfully, but these errors were encountered: