Quote:
because each pojo is local and has its own importcontext.
I agree that BasicPojoClass, as a mapping wrapper is a good place for computing the package of the (generated or supplied) pojo class.
Even when we're generating another class, we may need to access it.
But when BasicPojoClass is called for retrieving pojo details, while
generating another class, the (needed) import context is not pojo's.
When we're generating the pojo, then the import context is the package of the pojo. That's particular case where the referred class and the generated class are the same.
When we need to deal with imports, we are concerned with the generated class, not the referred class.
Also when generating *one* class, we need an import context too, should we access BasicPojoClass to get it ?