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
|
Regarding to the Blog "Controlling LightSpeed entity loading with named aggregates". How are ValueObjects handled? There is no aggregate property at the association. - Sörnt |
|
|
Excellent question. Yes, value objects can be made part of a named aggregate. All columns of the value object will be loaded together. So if you make a value object instance part of the "A" aggregate, and you do a query without A, then all the columns for that value object instance will be excluded. If you then reference the value object member, then LightSpeed will issue another query for all the columns of that value object. Individual fields within a value object cannot be part of a named aggregate: the value object is always loaded or not loaded as a whole. However, you are right that this isn't yet supported in the designer. At the moment you can make a value object part of a named aggregate only through code. But if this is something you need to do, let us know and we'll get the designer support added! |
|
|
Yes, I would like to get it :-) - Sörnt |
|
|
Done! It will be in the next nightly build. As always, let us know if you run into any problems! |
|
|
Thank you very much! - Sörnt |
|