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 All!
I'm new to NHibernate Designer, and yesterday i got a weird error message:
/* ERROR: Document: Add table document to the database - Cannot create composite foreign keys: Mindscape.NHibernateModelDesigner.Entity.Documents */; I made that entities to an exist database. After, i connect one new entity to the Document (the newly connected entity inherited from another entity). Could You please explain me, what can i made wrong? (this error message come, when i click to the "Update Database from Model...")
Thanks!
|
|
|
You're not doing anything wrong, you've just run into a limitation of the rapid database synchronisation support. As the message says, we don't currently support creating composite foreign keys. You'll need to use an external database update engine, such as the NHibernate SchemaExport class, to recreate your database schema instead of using the in-designer update function. We'll see if we can get rid of this limitation in v2 -- thanks for the feedback! |
|
|
Thank You! If possible, i would like to suggest a new feature: in case of *..* connection, would be very good, to add properties to the connection table. Like this: Classes: User *--- * Address Company *--* Address In database: user ---- user_address ---- address company --- company_address --- address
and it would be great to add 1 new properties (addresstype) to the company_address table.
regards, kevegabi |
|