I've just updated from wildfly 12 to 18, and from Java 8 to 11. No code has been changed within my project. Running the integration tests has produced a really odd problem though. UPDATE statements no longer seem to be running. For example:
@Transactional
public void updateStatus(final long id, final Status status)
{
final Item item = entityManager.find(Item.class, id, LockModeType.PESSIMISTIC_WRITE);
item.setStatus(status);
entityManager.merge(item);
}
Previously this would cause an update statement to be run, now nothing happens. If I call entityManager.flush()
after the merge()
an update statement is run, but the database does not reflect the updated entity.
No idea what might cause this sort of thing. Only thing I can think of is that some default config in wildfly 18 is different to 12?