Thanks for the suggestions. I'll look into it for my test case.
Martijn
On Mon, Nov 2, 2015 at 9:32 PM, Steve Ebersole wrote:
> The other option is to plug in
> a org.hibernate.resource.jdbc.spi.StatementInspector. You can do this on
> the SessionFactory or Session level
>
> On Mon, Nov 2, 2015
The other option is to plug in
a org.hibernate.resource.jdbc.spi.StatementInspector. You can do this on
the SessionFactory or Session level
On Mon, Nov 2, 2015 at 2:29 AM Radim Vansa wrote:
> You can mock the JDBC driver and test the emitted SQL from there; I am
> using mockrunner-jdbc [1] to d
You can mock the JDBC driver and test the emitted SQL from there; I am
using mockrunner-jdbc [1] to do that. Since Hibernate needs to chat with
DB a bit before doing the logic of that test, it's convenient to switch
between real DB and the mocks at runtime. I've created a little tool [2]
to do
Adding back the list.
To answer Martijn: personally I don't know the answer, but it sounds
like an excellent idea to implement that, if it's not possible
already.
Keep in mind that Hibernate might need to generate multiple SQL
statements per operation.
Sanne
-- Forwarded message