Manoel Campos

Results 49 comments of Manoel Campos

What I meant is that, inside my project, datacenters.network is not a domain name, but a subdomain: org.cloudsimplus.datacenters.network. This way, there is no domain clash.

Hello @emmanuelbernard In fact, I removed the field from the`update()` method just to try different things and forgot to put it back. Including the field is the way it's supposed...

@emmanuelbernard I've just found the issue. Panache doesn't expose the `EntityManager.update()` method, so we have to write that extra code to merge an existing entity: ```java public static boolean update(Foo...

@FroMage yeah, it's really strange. If I can help anyway, just let me know. I'll be glad to. @Sanne, to avoid exposing `merge()`, the `persist()` method could be changed as...

> BTW are you sure that would work? I expect isPersistent would always return false for a detached entity. @Sanne, in fact, `isPersistent()` will return false for detached entities. What...

> Is it merge that throws, or is it on flush? @FroMage, merge is the one to throw the `OptimisticLockException`, as can be seen in the stacktrace below: ```bash javax.persistence.OptimisticLockException:...

> To avoid the attach problem I think I would prefer the original merge contract @emmanuelbernard I'm thinking that it would be great if `merge()` was a generic method such...

Meanwhile, the code below is a workaround for those facing the same issue: ```java public static void update(SomeEntity entity) { final EntityManager em = JpaOperations.getEntityManager(); SomeEntity updated = em.merge(entity); updated.flush();...