Examples of Mappings


Examples of org.eclipse.persistence.jpa.config.Mappings

    public PersistenceUnitImpl(String name) {
        this(name, null);
    }

    public Mappings addMappings() {
        Mappings mappings = new MappingsImpl();
        this.mappings.add(mappings);
        return mappings;
    }
View Full Code Here

Examples of org.exoplatform.portal.mop.redirects.Mappings

                            buildCondition(conditionData, condition);
                        }
                    }

                    if (redirectData.getMappings() != null) {
                        Mappings mappings = redirect.getMapping();
                        if (redirect.getMapping() == null) {
                            mappings = redirect.createMapping();
                            redirect.setMapping(mappings);
                        }
                        buildMappings(redirectData.getMappings(), mappings);
View Full Code Here

Examples of org.exoplatform.portal.mop.redirects.Mappings

                            buildCondition(conditionData, condition);
                        }
                    }

                    if (redirectData.getMappings() != null) {
                        Mappings mappings = redirect.getMapping();
                        if (redirect.getMapping() == null) {
                            mappings = redirect.createMapping();
                            redirect.setMapping(mappings);
                        }
                        buildMappings(redirectData.getMappings(), mappings);
View Full Code Here

Examples of org.exoplatform.portal.mop.redirects.Mappings

                            buildCondition(conditionData, condition);
                        }
                    }

                    if (redirectData.getMappings() != null) {
                        Mappings mappings = redirect.getMapping();
                        if (redirect.getMapping() == null) {
                            mappings = redirect.createMapping();
                            redirect.setMapping(mappings);
                        }
                        buildMappings(redirectData.getMappings(), mappings);
View Full Code Here

Examples of org.exoplatform.portal.mop.redirects.Mappings

                            buildCondition(conditionData, condition);
                        }
                    }

                    if (redirectData.getMappings() != null) {
                        Mappings mappings = redirect.getMapping();
                        if (redirect.getMapping() == null) {
                            mappings = redirect.createMapping();
                            redirect.setMapping(mappings);
                        }
                        buildMappings(redirectData.getMappings(), mappings);
View Full Code Here

Examples of org.hibernate.cfg.Mappings

    }

  };

  public void testProperCallbacks() {
    final Mappings mappings = new Configuration().createMappings();
    final Table tbl = new Table();
    final RootClass rootClass = new RootClass();

    ValueVisitor vv = new ValueVisitorValidator();
   
View Full Code Here

Examples of org.hibernate.cfg.Mappings

      AnnotationConfiguration config = new AnnotationConfiguration();
      config.setNamingStrategy(EJB3NamingStrategy.INSTANCE);
      config.addAnnotatedClass(A.class);
      config.addAnnotatedClass(AddressEntry.class);
      config.buildSessionFactory();
      Mappings mappings = config.createMappings();
      boolean foundIt = false;

      for ( Iterator iter = mappings.iterateTables(); iter.hasNext()) {
        Table table = (Table) iter.next();
        log.info("testWithEJB3NamingStrategy table = " + table.getName());
        if ( table.getName().equalsIgnoreCase("A_ADDRESS")) {
          foundIt = true;
        }
View Full Code Here

Examples of org.hibernate.cfg.Mappings

        config.setNamingStrategy(this.namingStrategy);
      }

      if (this.typeDefinitions != null) {
        // Register specified Hibernate type definitions.
        Mappings mappings = config.createMappings();
        for (int i = 0; i < this.typeDefinitions.length; i++) {
          TypeDefinitionBean typeDef = this.typeDefinitions[i];
          mappings.addTypeDef(typeDef.getTypeName(), typeDef.getTypeClass(), typeDef.getParameters());
        }
      }

      if (this.filterDefinitions != null) {
        // Register specified Hibernate FilterDefinitions.
View Full Code Here

Examples of org.hibernate.cfg.Mappings

        config.setNamingStrategy(this.namingStrategy);
      }

      if (this.typeDefinitions != null) {
        // Register specified Hibernate type definitions.
        Mappings mappings = config.createMappings();
        for (int i = 0; i < this.typeDefinitions.length; i++) {
          TypeDefinitionBean typeDef = this.typeDefinitions[i];
          mappings.addTypeDef(typeDef.getTypeName(), typeDef.getTypeClass(), typeDef.getParameters());
        }
      }

      if (this.filterDefinitions != null) {
        // Register specified Hibernate FilterDefinitions.
View Full Code Here

Examples of org.hibernate.cfg.Mappings

        config.setNamingStrategy(this.namingStrategy);
      }

      if (this.typeDefinitions != null) {
        // Register specified Hibernate type definitions.
        Mappings mappings = config.createMappings();
        for (int i = 0; i < this.typeDefinitions.length; i++) {
          TypeDefinitionBean typeDef = this.typeDefinitions[i];
          mappings.addTypeDef(typeDef.getTypeName(), typeDef.getTypeClass(), typeDef.getParameters());
        }
      }

      if (this.filterDefinitions != null) {
        // Register specified Hibernate FilterDefinitions.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.