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
<p>O, en el caso de que uses mappers, usando la anotación <code>@Lang</code>:</p>
216
211
<source><![CDATA[public interface Mapper {
217
-
@Lang(RawLanguageDriver.class)
212
+
@Lang(MyLanguageDriver.class)
218
213
@Select("SELECT * FROM BLOG")
219
214
List<Blog> selectBlog();
220
215
}]]></source>
221
216
222
217
<p><spanclass="label important">NOTA</span> Puedes utilizar Apache Velocity como lenguaje dinámico. Echa un vistazo al proyecto MyBatis-Velocity para conocer los detalles.</p>
223
218
224
-
<p>También puedes implementar tu propio lenguaje implementado el siguiente interfaz:</p>
<p>Or, in the case you are using mappers, using the <code>@Lang</code> annotation:</p>
216
209
<source><![CDATA[public interface Mapper {
217
-
@Lang(RawLanguageDriver.class)
210
+
@Lang(MyLanguageDriver.class)
218
211
@Select("SELECT * FROM BLOG")
219
212
List<Blog> selectBlog();
220
213
}]]></source>
221
214
222
215
<p><spanclass="label important">NOTE</span> You can use Apache Velocity as your dynamic language. Have a look at the MyBatis-Velocity project for the details.</p>
223
216
224
-
<p>You can also implement your own language driver by implementing the following interface:</p>
0 commit comments