Think 2 entities OneToOne mapped. Person and Car. A Person can have a Car.
We have a Person object loaded from database. I want to change Person's Car. The problem is I don't have a loaded Car object to use. Instead I only have Car's ID. Using this Car Id , is it possible to set Person's Car to that wanted Car (which we have it's id), without loading/selecting any Car from DB ? And than save this Person and it's car to db. I don't need any information fetched about. I only need to tell Hibernate that I want Person's Car to be the Car which has that Id.
Is this possible? Sorry If my English sux. Thanks in advice.