-->
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: Problème : id unsaved-value strategy UNDEFINED
PostPosted: Wed Aug 29, 2007 11:01 am 
Newbie

Joined: Wed Aug 29, 2007 10:33 am
Posts: 2
Salut,

Le serveur plante lors du "saveOrUpdate" d'un objet Ventilation. Il affiche comme erreur "id unsaved-value strategy UNDEFINED". J'ai fait d'autres saveOrUpdate sur d'autre objets mais le mapping de leur id était plus simple.

Tout me porte à croire que ce problème vient du mappping de l'id de ma Ventilation qui est de class VentilationPK.
======================
Mon fichier de mapping:
--------------------------
Code:
   <class
      name="Ventilation"
      table="BUDGET_CLIENT"
   >

      <composite-id name="id" class="VentilationPK">
         <key-many-to-one
            name="versionLigneBudgetaire"
            class="VersionLigneBudgetaire"
            column="ID_BUDGET_NATURE_VERSION"
         />
         <key-many-to-one
            name="client"
            class="com.adeo.sibud.metier.referentiel.Client"
            column="ID_CLIENT"
         />
      </composite-id>
                <!--.................-->
      </class>


========================
Ma Class Ventilation:
----------------------
Code:
public class Ventilation impléments  Serializable {
   // primary key
   private VentilationPK id;
    //............
}


NB : VersionLigneBudgetaire possède un set de Ventilation.

Merci de m'aider à corriger ce problème.

Albéric.[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 18, 2007 5:32 am 
Newbie

Joined: Thu Nov 30, 2006 12:21 pm
Posts: 14
est ce que ta ventilationPK implémente l'interface serializable ?


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.