Affects Version/s: None
Fix Version/s: None
Environment:Win XP, Tomcat 5.5.15 Liferay 3.6.1,
Any application or portlet dealing with currencies should really use the java BigDecimal class. It would be nice and fairly trivial for the ServiceBuilder to support this.
I've just done a quick and dirty test and all I needed to do was use type="java.math.BigDecimal" in my service.xml and then modify the ext-hbm.xml to have type="big_decimal" in the appropriate place
(This was with postgresql).
Surely there are other people out there working with currencies within the liferay system that could
benefit as well.
Background: I'm writing a very specialised shopping basket system which is very loosely based on the
Liferay's shopping basket and I've just realised that I shouldn't be using double values and that
it might not be very appropriate for Liferay's shopping basket portlet either (I haven't analysed in detail
how it does its rounding).