Just to confirm that Mitesh Meswani's advice fixed the problem.
[b]The class header now reads[/b]:
@Embeddable
@Access(value = AccessType.PROPERTY)
public class MoneyC extends net.bawtry.bcs.general.Money {
[b]The annotated method[/b]:
@Column(nullable = false)
@Override
protected BigDecimal getAmount() {return this.amount;}
[b]The entity class referencing MoneyC[/b]:
@Embedded
@AttributeOverrides(
{_at_AttributeOverride(name="amount", column=_at_Column(name="priceAmount")),
@AttributeOverride(name="currencyCode", column=_at_Column(name="priceCurrency"))
})
private MoneyC price;
[b]This all works fine![/b]
[Message sent by forum member 'joerobbins']
http://forums.java.net/jive/thread.jspa?messageID=485934