-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Could not determine type for: java.sql.SQLXML Error
PostPosted: Wed Jan 19, 2011 5:28 am 
Newbie

Joined: Wed Jan 19, 2011 5:12 am
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.