-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: User types needed for volume, linear distance and temperatur
PostPosted: Thu Mar 08, 2007 2:16 pm 
Newbie

Joined: Thu Feb 22, 2007 12:36 pm
Posts: 4
I am new at this but it seems to me that my application could benefit from some user defined types to help in handling things where the same value can be expressed in several units.
Volume - cubic feet, cubit metres, bushels and "bags" (cubic yards)
Linear distance feet and metres (kiliometres, miles, yards)
Temperature - Celsius and Fahrenheit (Kelvin)

I do not need quantity but perhaps someone does - dozens, gross, each


Do implementations of these exist? I hate to reimplement the wheel when others who are more qualified have done it better.

The conversions between units are stable and well known so equality can be programmed to work properly although tolerance is a bit of an issue.


Is it worth the trouble or should I just settle on an internal system on units and convert at the input and output stages?

In the long term, it seems a bit attractive to be able to subtract 50 number4 bags of grain from 40,000 bushels to calculate the amount remaining rather than spreading conversions all over the code.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 08, 2007 2:18 pm 
Newbie

Joined: Thu Feb 22, 2007 12:36 pm
Posts: 4
This is in the wrong place. Can I move it to the correct forum or should I just repost?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 19, 2007 11:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
repost

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.