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: Hibernate Custom Mappings With sql-result-set-mapping
PostPosted: Mon Feb 22, 2010 6:08 pm 
Regular
Regular

Joined: Fri Oct 05, 2007 1:17 pm
Posts: 78
I am using JPA with Hibernate and have a sql-result-set-mapping as follows:

Code:
<sql-result-set-mapping name="searchResults">
        <column-result name="ID" />
        <column-result name="SUBJECT" />
        <column-result name="POINTS" />
</sql-result-set-mapping>


The field POINTS is mapped by a custom mapping. When I do this, I get the following:

Code:
org.hibernate.MappingException: No Dialect mapping for JDBC type: 2002


The weird thing is that if I let Hibernate handle the ORM on its own, then it works. It knows how to map the database type to my custom type.

Do custom mappings not work with sql-result-set-mapping? Is there anything else I can try?

Thanks for any insight.


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.