Why don't you use BelongsTo instead of OneToOne?
MIrcea
On 7/5/06, Dan Bunea <[EMAIL PROTECTED]
> wrote:
Sorry Hammet, maybe I didn't put it right.
Um * - 1 UmType there are more Um in a UmType (ex: in "Length" there are
"meter","km","cm")
and there is also
UmType has a default Um ex: for "Length", the default Um is "meter"
So in fact I have to do a belongsto from Um to UmType, and the UmType
needs to have one Um.
Thanks,
Dan
On Tue, 04 Jul 2006 18:51:54 +0400, hammett <[EMAIL PROTECTED]> wrote:
> The OneToOne doesn't seem right. Do you want the UmType and Um sharing
> their PK?
>
> On 7/4/06, Dan Bunea <[EMAIL PROTECTED]> wrote:
>> We are looking for a way to map a Quantity object, instead of numeric
>> values inside our persistent classes, because lots of convertions are
>> needed when quantities are added, substracted compared etc so we came up
>> with the following solution, which we don't really know how to map and
>> any
>> help would be great:
>
--
Dan Bunea
http://danbunea.blogspot.com
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ CastleProject-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/castleproject-users
