org.apache.ibatis.builder.BuilderException: Dynamic content is not allowed when using RAW language

GitHub | paulkrause88 | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Need a way to turn off generation of dynamic SQL

    GitHub | 3 years ago | paulkrause88
    org.apache.ibatis.builder.BuilderException: Dynamic content is not allowed when using RAW language

    Root Cause Analysis

    1. org.apache.ibatis.builder.BuilderException

      Dynamic content is not allowed when using RAW language

      at org.apache.ibatis.scripting.defaults.RawLanguageDriver.checkIsNotDynamic()
    2. MyBatis
      XMLMapperBuilder.configurationElement
      1. org.apache.ibatis.scripting.defaults.RawLanguageDriver.checkIsNotDynamic(RawLanguageDriver.java:49)[mybatis-3.2.5.jar:3.2.5]
      2. org.apache.ibatis.scripting.defaults.RawLanguageDriver.createSqlSource(RawLanguageDriver.java:36)[mybatis-3.2.5.jar:3.2.5]
      3. org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:89)[mybatis-3.2.5.jar:3.2.5]
      4. org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:132)[mybatis-3.2.5.jar:3.2.5]
      5. org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:125)[mybatis-3.2.5.jar:3.2.5]
      6. org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:115)[mybatis-3.2.5.jar:3.2.5]
      6 frames