Hi,
currently I'm migrating a persistence wrapper from Hibernate 3.2.3 to 4.3.1. Most of the work is already done. But now I have a problem to migrate the Persister classes of our wrapper.
We are using s.th. like that in our EntityPersister in the delete() method for exmaple:
Code:
//Render the SQL query
PreparedStatement delete;
if (useBatch)
{
if (callable)
{
delete = session.getBatcher().prepareBatchCallableStatement(sql);
}
else
{
delete = session.getBatcher().prepareBatchStatement(sql);
}
}
else
{
if (callable)
{
delete = session.getBatcher().prepareCallableStatement(sql);
}
else
{
delete = session.getBatcher().prepareStatement(sql);
}
}
But what is the correct way to implement that in Hibernate 4? I've searched already if there is any documentation but haven't found any example or a documentation which explain that more in detail :-(.
Anybody who can help?
Reagrds,
Michael