Maybe this is a stupid question but it\'s bugging me.
I have a bi-directional one to many relationship of Employee to Vehicles. When I persist an Employee in the dat
You have to set the associatedEmployee on the Vehicle before persisting the Employee.
Employee newEmployee = new Employee("matt");
vehicle1.setAssociatedEmployee(newEmployee);
vehicles.add(vehicle1);
newEmployee.setVehicles(vehicles);
Employee savedEmployee = employeeDao.persistOrMerge(newEmployee);