openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plins...@gmail.com
Subject Re: Custom data types
Date Wed, 05 Dec 2007 07:25:43 GMT
Hi,

I think that you should be using the regular Java type name; are there
really underscores and no package in the class ne?

You can always specify a strategy for a particular field with the
@Strategy annotation as well.

-Patrick

On 12/3/07, Roy Smith <roy.smith@primetext.com> wrote:
> Thanks for the pointer, Patrick.
>
> I've created a MoneyValueHandler based on the PointHandler example. So
> far so good.
> Now I'm struggling to see how I configure my handler into OpenJPA.
>
> I've tried adding this line to my persistence.xml
> <property name="openjpa.jdbc.MappingDefaults"
> value="FieldStrategy='couk_cleverthinking_gwappo_db_money=couk.cleverthinking.gwappo.db.MoneyValueHandler'"/>
> but it seems to have no effect, ie. my handler is not being invoked.
>
> I'm guessing I've got the configuration wrong or missed a step, but I
> can't seem to find any examples on how to achieve this.
>
> very best wishes
> Roy
>
>


-- 
Patrick Linskey
202 669 5907

Mime
View raw message