How to use generate model

  • ismail

    ismail - 2006-07-18

    I have created new db table. I have added a ne tab in an existing window.Everything works good.All the data from foreign key work good.When we click the save button we get an error "ORA-00918: column ambiguously defined".
    We have seen that there is two class for every db table like, .We think that these java classes  are generated by  "" .How can we call "GenerateModel" to create these java classes.

    • Trifon (An ADempiere founder)


      Save below test as file "GenerateModel.launch" in dbPort project. Probalby you will need to edit some value sin order to make it run. As a result from savid as file in Run menu you will see new item.

      <?xml version="1.0" encoding="UTF-8"?>
      <launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
      <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.compiere.util.GenerateModel"/>
      <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="${workspace_loc:_gen}/&#10;org.compiere.model&#10;'U','A','D','C','CUST'"/>
      <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="dbPort"/>
      <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-DPropertyFile=${workspace_loc:_production}/Compiere2/"/>
      <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
      <listEntry value=""/>
      <booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks