I have been messing around with spring roo and I found a reference in the documentation in the field commands section which says when making a One to One relationship you need to add, to the entity containing the fk, a method to remove it from the other class like this:
When I try to add this I get a cannot use this annotation here on the preremove annotation and a error on the . in the method name declaring it is expecting ;. Is this no longer needed or am I putting this in the wrong file?Code:@PreRemove private void Car.preRemove() { this.getOwner().setCar(null); }


Reply With Quote