.net - NHibernate Mapping (Attributes) : KeyProperty not persisted -


In my current project, there are comments in the workflow. Please take a look at the following code. [KeyManyToOne (1, column = "workflow_id", name) [Composite ID] [Kippprooty (1, column = "data", name = "date", type type = typefile) = "Workflow", classtype = typef (workflow)) public virtual IWorkflow workflow {get; Set; } [Property (column = "comment")] Public Virtual String Comment Text {Received; Set; } Public Virtual DateTime Date {get; Set; }

Below this line of relationship workflow (1) & lt; ---- & gt; (N) The comment describes (a per-date). While saving this type of unit, the database indicates violation of an obstacle that the column "data" can not be zero - which is not (its value for the object).

I thought, defining a key method was enough to sustain this area, but obviously NHibernate sees it another way ...

Does anyone in this mapping Mistake?

I do not know if it goes back to such an inaccurate NH bug, but it works now Is, without changing anything of mine: (


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -