Package org.openbravo.model.ad.module

Examples of org.openbravo.model.ad.module.ModuleDBPrefix


    module.setVersion("1.0.0");
    module.setDescription("Testing dbprefixes");
    module.setInDevelopment(true);
    OBDal.getInstance().save(module);

    ModuleDBPrefix dbPrefix = OBProvider.getInstance().get(ModuleDBPrefix.class);
    dbPrefix.setName("TEST1");
    dbPrefix.setModule(module);
    OBDal.getInstance().save(dbPrefix);

    DataPackage pack = OBProvider.getInstance().get(DataPackage.class);
    pack.setJavaPackage("org.openbravo.test.tablename.data");
    pack.setName("org.openbravo.test.tablename.data");
View Full Code Here


  // Tries to insert a valid or not valid and check it was inserted (if valid)
  // or not inserted (if not valid
  private void insertDBPrefix(String name, boolean isValid) {
    setUserContext("0");
    Module mod = getModule();
    ModuleDBPrefix dbPrefix = OBProvider.getInstance().get(ModuleDBPrefix.class);

    dbPrefix.setModule(mod);
    dbPrefix.setName(name);

    OBDal.getInstance().save(dbPrefix);

    boolean exception = false;
    try {
View Full Code Here

TOP

Related Classes of org.openbravo.model.ad.module.ModuleDBPrefix

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.