-->
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.  [ 7 posts ] 
Author Message
 Post subject: SYNCHRONIZATION
PostPosted: Thu Mar 10, 2005 10:50 am 
Newbie

Joined: Tue Mar 08, 2005 4:54 pm
Posts: 9
Location: GHANA WEST-AFRICA
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

i would like to know how to deal with synchronization problems.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 10, 2005 1:16 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
then attend a java beginners course on concurrency.

(or maybe rephrase the question to something concrete)

-max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 10, 2005 3:05 pm 
Newbie

Joined: Tue Mar 08, 2005 4:54 pm
Posts: 9
Location: GHANA WEST-AFRICA
max wrote:
then attend a java beginners course on concurrency.

(or maybe rephrase the question to something concrete)

-max
Quote:
Hi Max please i don't get it ...........i don't think i need a course on concurrency.there is a problem i believe the hibernate community is not addressing properly.and it has to do with the one to many mapping and the reverse wich is many to one. i have read from other places and many people seem to be talking about it.the Error that keeps coming is :COULD NOT SYNCHRONISE DATABASE STATE WITH SESSION.
please if you can help i would appreciate it but please i think your reply to me is strong language thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 10, 2005 3:08 pm 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
Well if you've got a specific problem, post the details and we'll try to help. Solving your synchronisation problems upfront without any information is a tall order.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 10, 2005 3:19 pm 
Newbie

Joined: Tue Mar 08, 2005 4:54 pm
Posts: 9
Location: GHANA WEST-AFRICA
drj wrote:
Well if you've got a specific problem, post the details and we'll try to help. Solving your synchronisation problems upfront without any information is a tall order.
Quote:
HI drj first of all sorry for not being specific.i asked about synchronization because i am trying to implement a one to many releationship and also a many tto one relationship int the reverse.but i keep getting this error:COULD NOT SYNCHRONISE DATABASE STATE WITH SESSION..... i just wanted to know about this because i have been searching from other web sites and many people seem to be experiencing the same thing.please if you have a way around it please let me know.THANKS


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 10, 2005 3:46 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
pkkamos,
do you really think there is a real problem with bidirectionnal associations? i think what you must do is:
1- read reference doc and hibernate in action
2- read it again
3- read wiki about bidirectionnal associations
4- search the forum with
Quote:
COULD NOT SYNCHRONISE DATABASE STATE WITH SESSION.

5- debug your apps and ask yourself if you have a good session management
6- if you're not sure, go to 1- and 2- again ;))
7- then, and only then go back here and read the rules, post some mapping files, some java code, and short stacktrace.

Then, someone will help you, every friend on this forum that respect the rules get help, no problem.

Regard,

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 11, 2005 8:50 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Hi pkkamos,

My response were merely a joke answer to a question that was unanswerable since you provided NO information whatsoever besides the word synchronization which has a very broad definition.

But anyway - follow Anthony's advice its the least you can do.

Furthermore the log output and stack trace should actually tell you very precise why the error occurs.

/max

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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.