Since the data is not yet committed, the select statement is blocked to avoid reading stale data. In MSSQL server, there's a option to provide a nolock hint to the server through the select query. However AFAIK, MySQL doesn't have such a hint. Try doing this:
set transaction isolation level READ UNCOMMITTED; select * from MyEntity where id = 1;
See if it works.
you pointed me in the right direction
after some investigations I found out, that the READ_COMMITED transaction isolation level behaves differently between oracle and MS Sql server.
SQL Server uses shared locks by default. Thus the select statement is blocked while the update is not commited yet.
If you set READ_COMMITTED_SNAPSHOT to ON for your database, then it uses row-versioning (like Oracle's default mode): and the select will not be blocked until the update is commited.
I think this behaviour can improve performance on my webapplication.
more information on this: