Class GenerateModelJPA

java.lang.Object
org.adempiere.util.GenerateModelJPA

@Deprecated(forRemoval=true, since="11") public class GenerateModelJPA extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Generate Model Classes extending PO. Base class for CMP interface - will be extended to create byte code directly
Version:
$Id$
Author:
Jorg Janke, Victor Perez (JPA variation)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    File Header
  • Constructor Summary

    Constructors
    Constructor
    Description
    GenerateModelJPA(int AD_Table_ID, String directory, String packageName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Generate PO Class
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Generate PO Model Class.
    Deprecated, for removal: This API element is subject to removal in a future version.
    String representation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • COPY

      public static final String COPY
      Deprecated, for removal: This API element is subject to removal in a future version.
      File Header
      See Also:
  • Constructor Details

    • GenerateModelJPA

      public GenerateModelJPA(int AD_Table_ID, String directory, String packageName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Generate PO Class
      Parameters:
      AD_Table_ID - table id
      directory - directory with \ or / at the end.
      packageName - package name
  • Method Details

    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      String representation
      Overrides:
      toString in class Object
      Returns:
      string representation
    • main

      public static void main(String[] args)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Generate PO Model Class.
              Example: java GenerateModel.class mydirectory myPackage 'U','A'
              would generate entity type User and Application classes into mydirectory.
              Without parameters, the default is used:
              C:\Adempiere\adempiere-all\extend\src\adempiere\model\ adempiere.model 'U','A'
              
      Parameters:
      args - directory package entityType - directory where to save the generated file - package of the classes to be generated - entityType to be generated