It is also possible to create a component as part of a package in the model. One of the advantages of this approach is that if you only want to generate code for a specific package, you only have to check out that package.
You can add a component to a package using any of the following methods:
When a component is created under a package, its default scope is the package to which it belongs.
Like other components, components that belong to packages can be assigned to be the active component for the project. When you create a component in a package, it automatically becomes the active component for the project.