Re: [hibernate-dev] Fwd: Link to test case templates

2015-11-03 Thread Martijn Dashorst
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

Re: [hibernate-dev] Fwd: Link to test case templates

2015-11-02 Thread Steve Ebersole
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

Re: [hibernate-dev] Fwd: Link to test case templates

2015-11-02 Thread Radim Vansa
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

[hibernate-dev] Fwd: Link to test case templates

2015-11-01 Thread Sanne Grinovero
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