This content has been marked as final. 
    
Show                 3 replies
    
- 
        1. Re: Force update on particular columnadastar Mar 20, 2008 9:15 AM (in response to adastar)no ideas? 
- 
        2. Re: Force update on particular columnmazz Mar 20, 2008 9:29 AM (in response to adastar)"CMP Entity Bean"? Is this a EJB 2.x question or a EJB3/JPA entity question? I'll assume the latter due to this forum being "EJB 3.0". 
 See entityManager.merge() - it merges an unattached JPA entity bean meaning whatever values are in the bean will be put into the DB. It doesn't merge one particular field - the entire bean is merged. I don't know of a way to force only a single field (dirty or not) to be merged into the DB - I don't think its possible, short of you writing your own JPQL UPDATE query and executing that explicitly.
- 
        3. Re: Force update on particular columnmazz Mar 20, 2008 9:30 AM (in response to adastar)I slightly misspoke - entityManager.merge() can merge either an attached or unattached JPA entity bean (it doesn't just have to be unattached). 
 
    