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
|
Given a value object with all of its fields required, is it possible to make the value object itself required in one entity but optional in another? |
|
|
If the database itself is nullable you can make this work since LightSpeed will just try and insert nulls for each of the ValueObject fields if the ValueObject property on that entity is set to null. You will want to be careful taking this approach though since it obviously can lead to data integrity issues and you will notice that the LightSpeed designer will try and fix those issues for you anytime you subsequently try and sync back to the database :)
|
|