Book Image

ADempiere 3.6 Cookbook

Book Image

ADempiere 3.6 Cookbook

Overview of this book

Table of Contents (16 chapters)
ADempiere 3.6 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Generating a model


A model is the essential part of ADempiere as it allows us to implement business logic. A model represents a table in the database schema. Given a table, ADempiere provides the tools to generate the model which has the built-in persistence capability. A model is required if you want to write a process or validation logic, toolbar button actions, and so on. This recipe describes the steps to generate a model from a database table.

Getting ready

Launch Eclipse and open the adempiere_360 project in it.

How to do it...

  1. 1. In Eclipse, click on the Run | Run Configurations menu. This will show the Run Configuration panel, as shown in the following screenshot.

  2. 2. Click on the New Launch Configuration toolbar button and fill in the following details on the Main tab:

    Project:
     adempiere_360-
    Main class:
     org.adempiere.util.GenerateModel
    
  3. 3. Go to the Arguments tab and fill in the following details, as shown in the following screenshot:

    Program arguments:
    C:\\adempiere_svn\\tags\\adempiere360lts...