Fork me on GitHub

OFBiz实战系列

1.OFBiz介绍

http://ofbiz.apache.org/index.html

Open Source Projects and Standards

Framework Introduction Videos and Diagrams

2.SDK文档

Technical Documentation

3.安装、部署和调试

http://ofbiz.apache.org/developers.html

Setup Intellij IDEA IDE for OFBiz Framework

Running and Debugging OFBiz in Intellij IDEA

4.入门案例

OFBiz Tutorial - A Beginners Development Guide for 16.11

5.实体模型及映射

<fieldtypemodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/fieldtypemodel.xsd">
  <!-- ===================== field-type-def ==================== -->
    <!-- General Types -->
    <field-type-def type="blob" sql-type="LONGBLOB" java-type="java.sql.Blob"/>
    <field-type-def type="byte-array" sql-type="LONGBLOB" java-type="byte[]"/>
    <field-type-def type="object" sql-type="LONGBLOB" java-type="Object"/>

    <field-type-def type="date-time" sql-type="DATETIME" java-type="java.sql.Timestamp"/>
    <field-type-def type="date" sql-type="DATE" java-type="java.sql.Date"/>
    <field-type-def type="time" sql-type="TIME" java-type="java.sql.Time"/>

    <field-type-def type="currency-amount" sql-type="DECIMAL(18,2)" java-type="java.math.BigDecimal"/>
    <field-type-def type="currency-precise" sql-type="DECIMAL(18,3)" java-type="java.math.BigDecimal"/>
    <field-type-def type="fixed-point" sql-type="DECIMAL(18,6)" java-type="java.math.BigDecimal"/>
    <field-type-def type="floating-point" sql-type="DOUBLE" java-type="Double"/>
    <field-type-def type="numeric" sql-type="DECIMAL(20,0)" java-type="Long"/>

    <field-type-def type="id" sql-type="VARCHAR(20)" java-type="String"/>
    <field-type-def type="id-long" sql-type="VARCHAR(60)" java-type="String"/>
    <field-type-def type="id-vlong" sql-type="VARCHAR(250)" java-type="String"/>

    <field-type-def type="indicator" sql-type="CHAR(1)" java-type="String"/>
    <field-type-def type="very-short" sql-type="VARCHAR(10)" java-type="String"/>
    <field-type-def type="short-varchar" sql-type="VARCHAR(60)" java-type="String"/>
    <field-type-def type="long-varchar" sql-type="VARCHAR(255)" java-type="String"/>
    <field-type-def type="very-long" sql-type="LONGTEXT" java-type="String"/>

    <field-type-def type="comment" sql-type="VARCHAR(255)" java-type="String"/>
    <field-type-def type="description" sql-type="VARCHAR(255)" java-type="String"/>
    <field-type-def type="name" sql-type="VARCHAR(100)" java-type="String"/>
    <field-type-def type="value" sql-type="VARCHAR(255)" java-type="String"/>

    <!-- Specialized Types -->
    <field-type-def type="credit-card-number" sql-type="VARCHAR(255)" java-type="String"/>
    <field-type-def type="credit-card-date" sql-type="VARCHAR(7)" java-type="String"/>
    <field-type-def type="email" sql-type="VARCHAR(320)" java-type="String"/>
    <field-type-def type="url" sql-type="VARCHAR(2000)" java-type="String"/>
    <field-type-def type="id-ne" sql-type="VARCHAR(20)" java-type="String"/>
    <field-type-def type="id-long-ne" sql-type="VARCHAR(60)" java-type="String"/>
    <field-type-def type="id-vlong-ne" sql-type="VARCHAR(250)" java-type="String"/>
    <field-type-def type="tel-number" sql-type="VARCHAR(60)" java-type="String"/>
</fieldtypemodel>

6.服务引擎

7.增删查改(CRUD)

...

posted @ 2017-10-23 13:25  Nick.Chung  阅读(486)  评论(0编辑  收藏  举报