-->
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.  [ 2 posts ] 
Author Message
 Post subject: Mapping "domaines types"
PostPosted: Thu Apr 15, 2010 5:54 am 
Newbie

Joined: Thu Apr 15, 2010 5:33 am
Posts: 2
Bonjour,
J’utilise postgresql avec une bonne partie de mes types spécifiés en tant que domaines :
Code:
CREATE DOMAIN d_horodate  AS timestamp

Et je les utilise dans mes tables en tant que types
Code:
CREATE TABLE identifications (  id serial NOT NULL,  date_creation d_horodate …

Je n’arrive pas a les mapper correctement ces "domaines types"
Dans ma classe générée, il marque simplement
Code:
private Serializable dateCreation;

Quand j’ai essayé
Code:
<type-mapping>
<sql-type jdbc-type="d_horodate” hibernate-type="java.util.Date"/>
</type-mapping>

il m’as insulté qu’il ne connait pas d_horodate en tant que jdbc-type
Personne n’utilise les « domaines types » avec Hibernate ?


Top
 Profile  
 
 Post subject: Re: Mapping "domaines types"
PostPosted: Thu Apr 15, 2010 6:29 am 
Newbie

Joined: Thu Apr 15, 2010 5:33 am
Posts: 2
Une autre précision, Hibernate Configuration perspective affiche le type "DISTINCT" pour toutes les colonnes déclarées en tant que "domaine type".
Je ne sais toujours pas comment les mapper.


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

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.