I would like to design my JPA entities without setters (using annotated fields), because i love "immutable" objects.
All entities will get hashCode/equal implementation without using the generated id (i read here).
My problem is how to update such an entity in data base? Is this possible or is the immutability either on both sided (object and entity) or on no side?