AttributeConverter not applied to @ElementCollection

Description

This is the entity class causing a mapping error:

Additionally, the enum ColorType has this converter:

However, the definition for the "color" column in e.g. Oracle is NUMBER(10) and not VARCHAR2.

I'll attach a Maven-based testcase for the latest WildFly (containing Hibernate 4.3.0.beta4) and the datasource java:jboss/datasources/ExampleDS, i.e. an in-memory H2 database (see persistence.xml).
Just invoke "mvn package jboss-as:deploy" and during deployment the table "customer_color" is created, and the "color" column is of type NUMBER.

Environment

None

Assignee

Steve Ebersole

Reporter

Juergen Zimmermann

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure