This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello again! :) Some minutes ago, i installed Oracle XE 11g. When i try to update database from modell (connection string OK), it say: The graph contains a circular reference. Is this a NHibernate Designer error message, or Oracle XE? (using NHibernate 2.0.155.19012 and Oracle XE 11.2.0) Under MSSQL and MySql this update working fine! Thanks! Regards, Gabor |
|
|
It's a NHibernate Designer error message. It basically means that we can't figure out which order to create the tables in because there is a cycle of tables with foreign keys to each other. However this shouldn't be affected by which database engine you're updating into -- it's an error in the structure of the model, not anything database-specific. The only thing I can think of is that your Oracle database and your SQL Server/MySQL databases might have different existing schemas, e.g. your Oracle database is blank whereas your MySQL database already had some tables in there. Could that be the case? If you think the model doesn't contain any circular references, do post the .nhmodel file and we can take a look at it for you. |
|
|
Hello Ivan, Thanks Your reply! Your idea was good, because the Oracle database was empty. :) It is a relatively large and complicated database structure. Is there any solution in NH Designer, which I find this circulated table references? I think, it would be very useful/helpful to show the table name in the message dialog box! Thanks again! Regards, Gabor |
|