A Developer's junkyard....
merge()
merge() doesn't make the object passed into it persistent, it returns another instance with the same state instead,
So you should write: bean.setManufacturer(s.merge(bean.getManufacturer()));
No comments:
Post a Comment