Re: Can't persist detached object

2009-01-20 Thread holod
Hi, the problem was in my code. 1. I get old Entity from DB. (db_entity) 2. I have new Entity from outside. (out_entity) 3. I take values from out_entity and set them to db_entity. It's plain update. 4. I persist db_entity with new values BUT! While replacing values db_entity I have removed some

Re: Can't persist detached object

2009-01-19 Thread Ognjen Blagojevic
Hi Holod, What is your enviroment? Which app. server are you using? Maybe you could try to describe step 4. in more detail? How do you copy referenced entities? -Ognjen holod wrote: I'm in strange situation. I have an entity Person. I have an EJB stateless bean which has three methods: 1. p