I have a simple app that, for the most part is read-only and doesn't
require the domain to have ids. I'm mapping the entities using [id
column type] instead of [id name.] I have encountered a situation
where I now need a composite id. however it appears that I must have
the properties present in the domain object to map to the entity to
the database.

the quick fix was to add private read-only fields to the entity and
map. tests are passing and development continues. However I was
wondering if I can map a composite element using the "column only"
technique, so i don't have unused fields in my domain, for the sole
purpose of mapping. something like
<composite-id>
      <column name="foo" sql-type="int" />
      <column name="bar" sql-type="int" />
<composite-id>

at first glance this doesn't seem possible but I wanted to double
check.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to