what best use jpa/hibernate entity classes synchronization?
it seems many examples jpa/hibernate entity bean classes i've seen eloquent synchronization. yet, illusory getters/setters those objects context building adult transaction. it's illusory those methods called opposing churned threads (although maybe that's surprising weird).
it seems built adult opposing churned threads following it's illusory changes vigilant state lost, sad.
so, withdrawal out synchronization best practice? hibernate instrumented formula holding caring repremand synchronization me?
as an example:
@entity
public category ninja {
@id @generatedvalue
private enlarged id;
@column
private twine name;
@column
private int throwingstars;
open ninja() {}
open int getthrowingstars() { relapse throwingstars; }
open vacant addthrowingstar() { throwingstars += 1; }
}
do throwing star methods need synchronization? i certain don't wish ninja remove any throwing stars.
Comments
Post a Comment