Smart association handling, updating either side of a bi-directional association will automatically trigger an update on the other side. For example:
many.setOne(one);
or
one.many.add(many);
It also provides static type checking by using strong type collection.
With Standard association handling, you will need to update both sides of a bi-directional association to maintain consistency. For example:
many.setOne(one);
one.getMany().add(many);
With Generics association handling, you will need to update both sides of a bi-directional association to maintain consistency, which is the same as the Standard association handling as described above, except that for Generics association handling, generics (e.g. Set) has been used for type specialization.
Smart association handling, updating either side of a bi-directional association will automatically trigger an update on the other side. For example:many.setOne(one);orone.many.add(many);It also provides static type checking by using strong type collection.With Standard association handling, you will need to update both sides of a bi-directional association to maintain consistency. For example:many.setOne(one);one.getMany().add(many);With Generics association handling, you will need to update both sides of a bi-directional association to maintain consistency, which is the same as the Standard association handling as described above, except that for Generics association handling, generics (e.g. Set) has been used for type specialization.
การแปล กรุณารอสักครู่..
