A good layer adhesion can be achieved in a composite having two or more layers wherein a layer I is obtained from a molding composition which has the following components: a) from 0 to 80 parts by weight of a polyamide selected from the group consisting of PA6, PA66, PA6/66 and a mixture thereof; b) from 0 to 100 parts by weight of a polyamine-polyamide copolymer; and c) from 0 to 80 parts by weight of a polyamide selected from the group consisting of PA11, PA12, PA612, PA1012, PA1212 and a mixture thereof; wherein a total of the parts by weight of components a), b) and c) is 100; wherein at least 20 parts by weight of components a) and b) is a monomer unit which is obtained from caprolactam and/or from a combination of hexamethylenediamine/adipic acid; and wherein at least 20 parts by weight of components b) and c) is a monomer unit which is obtained from omega-aminoundecanoic acid, laurolactam, a mixture of hexamethylenediamine and 1,12-dodecanedioic acid, a mixture of 1,10-decanediamine and 1,12-dodecanedioic acid, and/or a mixture of 1,12-dodecanediamine and 1,12-dodecanedioic acid.