org.hibernate.Session.update(Object) and (String, Object) contain the following sentences in their documentation:
Update the persistent instance with the identifier of the given detached instance. If there is a persistent instance with the same identifier, an exception is thrown.
To me this looks contradictory, in that the first sentence says the whole point is to update a persistent instance, whereas the second says if there is one, an exception will be thrown.
|