클래스 구현하기 public class MonetaryAmountCompositeUserType implements CompositeUserType { public String[] getPropertyNames() { return new String[] { “amount”, “currency” }; } public Type[] getPropertyTypes() { return new Type[] { Hibernate.BIG_DECIMAL, Hibernate.CURRENCY }; } public Object getPropertyValue(Object component, int property) throws HibernateException { MonetaryAmount monetaryAmount = (MonetaryAmount) component; if