I\'m new to DDD and NHibernate.
In my current project, I have an entity Person, that contains a value object, let\'s say Address. Today, this is fine. But maybe one
You can Join and make it a Component allowing nHibernate to map it as a proper value object instead of an entity.
This way you won't need any virtual properties nor an empty protected ctor (it can be private).
Join("PROPOSAL_PRODUCT", product =>
{
product.Schema(IsaSchema.PROPOSALOWN);
product.KeyColumn("PROPOSAL_ID");
product.Component(Reveal.Member("_product"), proposalProduct =>
{
proposalProduct.Map...
});
});