Hello everybody,
I'm running my application using jboss6 and a DB2 database. I've defined a java.sql.SQLXML attribute in my domain class.
This attribute maps to a XML column type in the DB2 database (V9.7). Everthing runs under JDK 1.6.
The problems is that I get the following exception from hibernate:
Caused by: org.hibernate.MappingException: Could not determine type for: java.sql.SQLXML, at table: BROKER_LOG, for columns: [org.hibernate.mapping.Column(DELIVERY_RESPONSE)] at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:291) [:3.5.2-Final] at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:275) [:3.5.2-Final] at org.hibernate.mapping.Property.isValid(Property.java:217) [:3.5.2-Final] at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:464) [:3.5.2-Final] at org.hibernate.mapping.RootClass.validate(RootClass.java:236) [:3.5.2-Final] at org.hibernate.cfg.Configuration.validate(Configuration.java:1193) [:3.5.2-Final] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1378) [:3.5.2-Final] at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954) [:3.5.2-Final] at ...... ......
The domain object is defined as follows:
@Entity @Table(name = "BROKER_LOG") public class BrokerLog40 implements Serializable, Cloneable { @Id @Column(name = "ID", updatable = false) private String id;
@Column(name = "DELIVERY_RESPONSE") private SQLXML deliveryResponse; etc etc
Could somebody give me a hint why hibernate cannot map this attribute?
All hints are appreciated...
Jan
|