tag:blogger.com,1999:blog-6038034264692630628.post5177730132333284846..comments2023-04-11T14:28:06.126+02:00Comments on NOtherDev: Mapping-by-Code - dynamic componentAdam Barhttp://www.blogger.com/profile/16605796098913600806noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6038034264692630628.post-43053066848643319472013-05-07T16:22:31.447+02:002013-05-07T16:22:31.447+02:00Today I can't say there isn't any document...Today I can't say there isn't any documentation . You wrote an excelent documentation in your posts. Thanks a lot. Vitor Rubiohttps://www.blogger.com/profile/09819146101627563485noreply@blogger.comtag:blogger.com,1999:blog-6038034264692630628.post-71066530433747688702012-01-18T22:27:52.829+01:002012-01-18T22:27:52.829+01:00I think that dynamic component can't be really...I think that dynamic component can't be really dynamic at both object and database level. Note that the component parts are stored as ordinary columns, so we need to know its list. There was similiar discussion in Ayende's post I've linked to, and he suggests to use Map mapping for that (which is just more generic key-value).Adam Barhttps://www.blogger.com/profile/16605796098913600806noreply@blogger.comtag:blogger.com,1999:blog-6038034264692630628.post-24772753807732916002012-01-18T22:20:26.712+01:002012-01-18T22:20:26.712+01:00Adam,
Yup, documentation really really sucks. I&#...Adam,<br /><br />Yup, documentation really really sucks. I've collected a working set of various implementations by trial & error and alot of googling. :)<br /><br />In this case you modified the mapping to reflect your domain object (the properties founded and municipality) but what if you don't know each property in advance and want to apply a generic mapping.<br /><br />So let's say I just want to persist an object with custom properties which inherits from parentobject and parentobject has a generic mapping?<br /><br />Would that be possible in the way you describe?Micha Schopman (famschopman at gmail.com)noreply@blogger.com