Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.java > #8890

Re: JPA detached entity

Newsgroups it.comp.java
Date 2016-03-26 07:11 -0700
References <nd1i1r$25te$1@adenine.netfront.net>
Message-ID <0d59bcc5-4860-4218-b339-7f2f17cea807@googlegroups.com> (permalink)
Subject Re: JPA detached entity
From Cicap <forzatonino@gmail.com>

Show all headers | View raw


Il giorno giovedì 24 marzo 2016 20:18:05 UTC, Davide ha scritto:
> Salve,
> sto sviluppando un'applicazione java ee che usa jpa, se nel DAO faccio
> una cancellazione (metodo remove()) di un'entità detached viene
> giustamente generata un'eccezione che indica che l'entità è detached
> mentre invece se faccio un'aggiornamento (metodo merge()) di un'entità
> detached non viene generata nessuna eccezione e l'aggiornamento va a
> buon fine, come mai succede questo?

Domanda: cosa pensi che faccia l'operazione "merge" in generale? E da quale fonte ti sei formato quell'idea.

Back to it.comp.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

JPA detached entity Davide <a@a.com> - 2016-03-24 21:18 +0100
  Re: JPA detached entity Cicap <forzatonino@gmail.com> - 2016-03-26 07:11 -0700
    Re: JPA detached entity Davide <a@a.com> - 2016-03-26 16:02 +0100
      Re: JPA detached entity Cicap <forzatonino@gmail.com> - 2016-03-26 11:55 -0700
        Re: JPA detached entity Davide <a@a.com> - 2016-03-26 20:15 +0100

csiph-web