Liferay Issues

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Test Sessions Access more options
    • Getting Started
PUBLIC - Liferay Portal Community Edition
  • PUBLIC - Liferay Portal Community Edition
  • LPS-15136 Service builder improvements
  • LPS-15233

Bringing datatype BigDecimal into Service-Builder

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Open Open
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: 6.1.0 CE RC1
  • Fix Version/s: None
  • Component/s: Tools, Tools > Service Builder
  • Labels:
    None
  • Environment:
    At revision 72531
  • Similar Issues:
    Show 5 results 

    LPS-35364Service Builder DTD does not match Service Builder requirements
    LPS-21171Sample Service Builder plugin portlet fails to compile
    LPS-25506Service Builder: Namespaces with a "_" causes a RuntimeException
    LPS-31580Adding Foo in Service Builder portlet causes exceptions
    LPS-1789Service Builder Generates NoSuchException if the <namespace> and <entity> are the same

Description

same improvement was addressed as LEP-841.

Details got addressed at https://www.liferay.com/community/forums/-/message_boards/message/7459432.

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.

A proposal:

1) provide data type called big_decimal in service-builder DTD

e.g.,
<column name="field6" type="big_decimal" convert-null="false" />
<column name="field7" type="big_decimal" convert-null="true" />

It would be better to add two elements for type BigDecimal in service-builder.

constraint-precision: the precision
constraint-scale: the scale

For example,

salary DECIMAL(5,2)

constraint-precision: 5
constraint-scale: 2

It can be presented as
<column name="salary" type="big_decimal"
constraint-precision="5" constraint-scale="2" convert-null="false" />

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 BigDecimalType

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions Summary
  • Commits
Hide
Permalink
Jonas Yuan added a comment - 10/Feb/11 5:32 PM

solution proposal was addressed at http://www.liferay.com/web/jonas.yuan/blog/-/blogs/bringing-data-type-bigdecimal-into-service-builder.

A fix patch for trunk version will be attached here shortly.

Show
Jonas Yuan added a comment - 10/Feb/11 5:32 PM solution proposal was addressed at http://www.liferay.com/web/jonas.yuan/blog/-/blogs/bringing-data-type-bigdecimal-into-service-builder . A fix patch for trunk version will be attached here shortly.
Hide
Permalink
Prakash Khanchandani added a comment - 23/Jan/13 1:52 AM

Any updates on the fix-patch?

Show
Prakash Khanchandani added a comment - 23/Jan/13 1:52 AM Any updates on the fix-patch?

People

  • Assignee:
    SE Support
    Reporter:
    Jonas Yuan
    Participants of an Issue:
    Jonas Yuan, Prakash Khanchandani, SE Support
Vote (6)
Watch (5)

Dates

  • Created:
    09/Feb/11 12:04 PM
    Updated:
    08/Feb/13 3:41 PM
    Days since last comment:
    20 weeks, 5 days ago

Agile

  • View on Board
  • Atlassian JIRA (v5.2.11#854-sha1:ef00d61)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Liferay. Try JIRA - bug tracking software for your team.