can you give more info? Entity code, and the code where you try and persist the entity would be useful.
ypu should :
1) get specyfic user entity you want
2) get specyfic action ypou want
3) set action as one element arraylist in User entity (you must have relation defined in user entity)
4)merge the user object.