Affects Version/s: None
Fix Version/s: None
Environment:Win XP, Tomcat 5.5.15 Liferay 3.6.1,
Similar Issues:Show 5 results
LEP-5169 ServiceBuilder should additionally have support for all generated files to be defined on the command-line LEP-2138 ServiceBuilder now has JSON support LEP-857 ServiceBuilder persistence update method doesn't support generated keys LEP-5168 ServiceBuilder should have the support to generate SQL tables based on 'mapping-table' attribute of service.xml LEP-1881 Enable ServiceBuilder to support long (64-bit) numbers.
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).