DirectHBM: Detached entity error fix - use merge instead of persist