-->
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: Utilisation des UserType [hibernate 2]
PostPosted: Thu Jun 23, 2005 4:40 am 
Newbie

Joined: Thu Jun 23, 2005 4:26 am
Posts: 1
Bonjour,

lors d'un mapping <any > la foreign key est composée du classname et de l'id.

Or le classname est un truc assez volumineux, donc j'aurai voulu utiliser un UserType. Ceci afin de pouvoir transformer automatiquement un ClassName en int, mais sans utiliser un meta-type="int" et des <meta-value value="1" class="com.domain.package.subpackage.myclass"/> répétés dans chaque any.

Mais pour définir un UserType perso c'est assez chaud, donc je voudrai savoir si qlq'un a déjà était confronté à ce problème et comment créer son UserType customisé.

Merci par avance,

Damien ...


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.