MyBatis Dynamic SQL

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

MyBatis Dynamic SQL

MyBatis Gupta
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
 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/0fc699fc-4997-48e7-84d6-92c32ed7a704n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: MyBatis Dynamic SQL

Jeff Butler
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




On Wed, Sep 9, 2020 at 8:30 PM MyBatis Gupta <[hidden email]> wrote:
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
 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/0fc699fc-4997-48e7-84d6-92c32ed7a704n%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/CAKpaNj4ssLnytOuPU8gu7K9kd-DYoxHyJXROkWf87ji6Z0O0Ww%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: MyBatis Dynamic SQL

Jeff Butler
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

 


On Wed, Sep 9, 2020 at 8:46 PM Jeff Butler <[hidden email]> wrote:
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




On Wed, Sep 9, 2020 at 8:30 PM MyBatis Gupta <[hidden email]> wrote:
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
 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/0fc699fc-4997-48e7-84d6-92c32ed7a704n%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/CAKpaNj4wL7dvA4njGx8hjCC0MjGrLmmg4375vm6yXDyuBnJfHQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: MyBatis Dynamic SQL

MyBatis Gupta
In reply to this post by Jeff Butler

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!
On Wednesday, September 9, 2020 at 8:46:15 PM UTC-4 Jeff Butler wrote:
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




On Wed, Sep 9, 2020 at 8:30 PM MyBatis Gupta <[hidden email]> wrote:
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
 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/0fc699fc-4997-48e7-84d6-92c32ed7a704n%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/de62dacb-c552-4e43-958b-8aedea5475f9n%40googlegroups.com.