ComplexType with Element of Type ComplexType

The following XML schema construct:

<complexType name="BankCustomer">
 <sequence>
  <element name="id" type="integer" />
  <element name="name" type="string"></element>
  <element name="account" type="tns:Account" />
 </sequence>
</complexType>
<complexType name="Account">
 <sequence>
  <element name="number" type="integer" />
 </sequence>
</complexType>

Maps to:

In this example, Account is a ComplexType and hence represented as a Class on the Business Object Model. The BankCustomer Class, subsequently, has a composition relationship with Account representing the "account" <element>.