Hi Jerzy,
Indeed, the Template interface was dropped, as we're not yet sure how to
expose such an API to the public. However, the existing plain SQL API
allows for quite a bit of templating out of the box:
https://www.jooq.org/doc/latest/manual/sql-building/plain-sql
Essentially, you can do things like:
query("select {0} from {1} where {2}",
list(
field("a"),
field("b")
), // corresponds to {0}
table("t"), // corresponds to {1}
condition("{0} = {1}",
field("x"),
val(1)
) // corresponds to {2}
);
Does this match your expectations? Or what particular MyBatis features are
you looking for the most?
Best Regards,
Lukas
2017-03-21 16:05 GMT+01:00 <[email protected]>:
> Hi all,
>
> I am looking into JOOQ as SQL templating engine.
>
> From what I see Template interface was dropped long time ago.
> What should I look for to accomplish declarative SQL creation with
> optional parts of where without doing it in Java code.
>
> I am basically looking for myBatis replacement.
>
> I will greatly appreciate any ideas
>
> Best regards
>
> Jerzy
>
> --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups "jOOQ
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.