-->
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: Could not synchronize database state with session
PostPosted: Fri Jun 24, 2005 2:45 am 
Newbie

Joined: Wed Jun 22, 2005 5:11 am
Posts: 3
Bonjour,
J'ai déjà posté une question dans le topic many-to-many, mais ce que j'aimerais surtout savoir c'est est-ce que cette erreur correspond à une violation de clé étrangère.

Merci

Code:
Hibernate: insert into agent_hab (uid_agent, hab_id) values (?, ?)
22 juin 2005 11:02:41 net.sf.hibernate.impl.SessionImpl execute
GRAVE: Could not synchronize database state with session
net.sf.hibernate.MappingException: No persister for: SQLServer.habilitation
  at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:347)
  at net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionImpl.java:2690)
  at net.sf.hibernate.impl.SessionImpl.getPersister(SessionImpl.java:2697)
  at net.sf.hibernate.impl.SessionImpl.getEntityIdentifierIfNotUnsaved(SessionImpl.java:2759)
  at net.sf.hibernate.type.EntityType.getIdentifier(EntityType.java:66)
  at net.sf.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:47)
  at net.sf.hibernate.collection.AbstractCollectionPersister.writeElement(AbstractCollectionPersister.java:384)
  at net.sf.hibernate.collection.Set.writeTo(Set.java:226)
  at net.sf.hibernate.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:523)
  at net.sf.hibernate.impl.ScheduledCollectionRecreate.execute(ScheduledCollectionRecreate.java:23)
  at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2418)
  at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2375)
  at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2240)
  at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)

[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 01, 2005 10:03 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
non c'est un mauvais mapping, SQLServer.habilitation est pris pour un type de base comme String au lieu d'être pris comme une entity

_________________
Emmanuel


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.