-->
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: Map special postgreSQL type REGCLASS or force cast
PostPosted: Thu Jan 30, 2014 4:15 pm 
Newbie

Joined: Thu Jan 30, 2014 11:29 am
Posts: 1
Hi guys,

I've issue with Hibernate(4.2) mapping a PostgreSQL(9) database.

I have a join table which stores data as regclass type. This data is a String in the model object.

Select and Insert queries are working well, but testing queries when instantiating a collection returns an error regarding the equal test :

ERROR: operator does not exist: regclass = character varying
Hint : No operator matches the given name and argument type(s). You might need to add explicit type casts.
Position : 795

Is there any way to identify this attribute as a Regclass or to force the cast when a test is done ?

Thanks in advance,

LDF.


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.