Code Generation from Class Diagram: Composition between two classes does not change anything in generated Java code!

I created two simple classes A and B, such that there there a COMPOSITION between these two classes. However, the generated code (in Java) is the same with OR without the composition between these two classes. In other words, the generated code, if there is a composition between class A and B, is the same as when I deleted the composition between class A and class B. That is, the composition between classes is NOT considered in generated code by Visual Paradigm.
What is the solution?

Hi VP41,

Thank you for your inquiry. A composition relationship is realized by the behavior but not the code stub generated. When you implement the logic of object disposal, you can perform the necessary clean-up of the composite objects.

Best regards,
Jick Yeung