Sunday 15 April 2012

linq - Nhibernate component with mapped class problem -


I am working with oracle and nhibernate; Icquer from an object list to the DB table (all the items in the table),

I can get the entire list in the query without any error, that's when I use where.

Query (query below and some information about the mapping document):

  select ID33_0_ as this_.ID, this_.BUNDLEID ..... .................... Where   "bundlemeam" class = "promissory notes.Sover data.bundle, promissory notes.serve.data" & Gt; & Lt; Property name = "id" column = "bundle" type = "decimal" & gt; & Lt; / Property & gt;  

In the Component "bundle" there is separate mapping in another XML document, I realized that, when I change the bundle class to another unfamiliar category, then it works . What is the solution as the bundle with mapped sections about the problem is the solution, any ideas?

Are you certain that it should actually be mapped as a component? Maybe it should be a lot of mapping?

Maybe something like this:

  & lt; Many-to-one names = "bundleitem" column = "bundle id" cascade = "save-update" />  

No comments:

Post a Comment