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
|
Hi, next question :-) Why am I getting the following error:
Full error dialog consists of: Error dehydrating property value for NHibernatetest.Customer.Address Cheers, Matt. |
|
|
Hi Matt, This looks like we are generating an invalid mapping, the AddressId should be being generated with insert='false' and update='false' as the issue is that there are two writable properties mapping to the same column. As you have found, removing the AddressId property removes ones of these and therefore the issue goes away. I will look at making an update to fix this and let you know once this is available in the nightlies.
|
|
|
Hi Matt, We have added in an update for this to generate the required attributes with the property and this will be available for you in tonights nightly build.
|
|
|
I found the same problem with dehydrating - it is possible to set some attribute, that would let the insert='false' and update='false' parameters set to be generated? In my model there are many relations, and I do not want to make the corrections in generated XML by hand... With regards Aranius |
|
|
Are you able to send us through a small repro project highlighting this please as we believe this has already been addressed as above.
|
|
|
Hi Aranius, This looks to be a different scenario to the original issue as you are using a custom type. Ive added an item to our backlog to see if we can add automated generation to cover this but in the meantime you can handle this via a custom code mapping. e.g.
This will transform the generated mapping with insert=false, update=false as required to cover this issue. If you have any other instances of this you can use the same approach to customize the generated mapping accordingly.
|
|
|
Hello, thank you very much for your response. The fix is working, it is just tedious work - I have really big number of tables and 1 to N relations :) When do you assume implementation of automated generation? With regards Aranius |
|