Any application or portlet dealing with currencies should really use the java BigDecimal class. Thus It would be nice for the Service-Builder to support data-type BigDecimal. Refer to
Service Builder support for BigDecimal. Thanks to Marcel Jansen.
Is it Interesting? Hope that you can share your thoughts / ideas, etc.
First of all, let me share a proposal as follows.
1) provide data type called
big_decimal in service-builder DTD
e.g.,
1<column name="field6" type="big_decimal" convert-null="false" />
2<column name="field7" type="big_decimal" convert-null="true" />
2) add new data type in Liferay core called
BigDecimalType, where specifies default value;
3) map
big_decimal into
NUMERIC or
DECIMAL as part of SQL scripts
4) map
big_decimal into data type
BigDecimalTypeIn above four steps, we could make data-type BigDecimal supported via Service-Builder.
You may refer to new features
Service-Builder improvement for the element
convert-null.
Your suggestions?
Thanks
Jonas Yuan
==================
The Author of Liferay Books:
Liferay User Interface DevelopmentLiferay Portal 6 Enterprise IntranetsLiferay Portal 5.2 Systems DevelopmentLiferay Portal Enterprise Intranets Por favor, faça login para denunciar.