MyBatis Dynamic SQL

瀏覽次數:52 次
跳到第一則未讀訊息

MyBatis Gupta

未讀,
2020年9月9日 晚上8:30:542020/9/9
收件者:mybatis-user
Hi
I am trying to follow

Is the full code available anywhere please? Is there any example complete project code anywhere that uses SelectStatementProvider etc as in that example?

Thanks much
Dami
 

Jeff Butler

未讀,
2020年9月9日 晚上8:46:152020/9/9
收件者:mybati...@googlegroups.com
The code examples on that page are from an earlier version of some of the test code. Some of the names have changed in the actual tests, but the basics are still the same.

The complete working example is here: https://github.com/mybatis/mybatis-dynamic-sql/tree/master/src/test/java/examples/simple (ignore the "legacy" package in that directory).


Jeff Butler




--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/0fc699fc-4997-48e7-84d6-92c32ed7a704n%40googlegroups.com.

Jeff Butler

未讀,
2020年9月9日 晚上9:00:342020/9/9
收件者:mybati...@googlegroups.com
To clarify a bit...

There are several full examples in the tests...I'll put these links into the main documentation in the near future, but for now you can use this as a reference...

Java and MyBatis example similar to the code generated by MyBatis Generator: https://github.com/mybatis/mybatis-dynamic-sql/tree/master/src/test/java/examples/simple

Java and MyBatis example without the use of specialized default methods in the mapper (like the quick start): https://github.com/mybatis/mybatis-dynamic-sql/tree/master/src/test/java/examples/animal/data


Kotlin and MyBatis example similar to code generated by MyBatis Generator: https://github.com/mybatis/mybatis-dynamic-sql/tree/master/src/test/kotlin/examples/kotlin/mybatis3/canonical

 

MyBatis Gupta

未讀,
2020年9月10日 下午3:06:292020/9/10
收件者:mybatis-user

Thank you so much. For
The select statement is executed on the mapper. In the Quick Start, the format is different where it uses the 'select' from the SQLBuilder. But I think I kinda got it now. Thanks so much for the prompt response!
回覆所有人
回覆作者
轉寄
0 則新訊息