ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Bradley <debrad...@gmail.com>
Subject Mapping Composition (aka composite property, aka value objects)
Date Mon, 19 Sep 2005 19:15:30 GMT
I have one entity, a Product, which holds a Price as a composed (not
related) entity. A Price is a numeric value and a currency code as a
String. Prices don't have a distinct identity in the database - they
are value objects, so this is not the more usual persistent entity to
persistent entity relationship mapping.

How would you map this using iBATIS? I've tried a variety of things
without success and can't yet find any documentation that covers this
situation. Thanks.

Mime
View raw message