Package org.hibernate.tool.hbm2x.visitor

Examples of org.hibernate.tool.hbm2x.visitor.EntityNameFromValueVisitor


   
    if(value instanceof Collection) {
      Collection col = (Collection) value;
      if(col.getCacheConcurrencyStrategy()!=null) { // caching is enabled
        if (!col.getElement().isSimpleValue()) {
          String entityName = (String) col.getElement().accept( new EntityNameFromValueVisitor() );

          if(entityName!=null) {
            PersistentClass classMapping = configuration.getClassMapping( entityName );
            if(classMapping.getCacheConcurrencyStrategy()==null) {
              collector.reportIssue( new Issue("CACHE_COLLECTION_NONCACHABLE_TARGET", Issue.HIGH_PRIORITY, "Entity '" + classMapping.getEntityName() +"' is referenced from the cache-enabled collection '" + col.getRole() + "' without the entity being cachable"));
View Full Code Here


    Boolean object = (Boolean) clazz.accept( new HasEntityPersisterVisitor( name ) );
    return object.booleanValue();
  }

  public String getHibernateTypeName(Property p) {
    return (String) p.getValue().accept(new EntityNameFromValueVisitor());
  }
View Full Code Here

    return (String) p.getValue().accept(new EntityNameFromValueVisitor());
  }


  public String getSafeHibernateTypeName(Property p) {
    return (String) p.getValue().accept(new EntityNameFromValueVisitor(false));
  }
View Full Code Here

    Boolean object = (Boolean) clazz.accept( new HasEntityPersisterVisitor( name ) );
    return object.booleanValue();
  }

  public String getHibernateTypeName(Property p) {
    return (String) p.getValue().accept(new EntityNameFromValueVisitor());
  }
View Full Code Here

    return (String) p.getValue().accept(new EntityNameFromValueVisitor());
  }


  public String getSafeHibernateTypeName(Property p) {
    return (String) p.getValue().accept(new EntityNameFromValueVisitor(false));
  }
View Full Code Here

    Boolean object = (Boolean) clazz.accept( new HasEntityPersisterVisitor( name ) );
    return object.booleanValue();
  }

  public String getHibernateTypeName(Property p) {
    return (String) p.getValue().accept(new EntityNameFromValueVisitor());
  }
View Full Code Here

    return (String) p.getValue().accept(new EntityNameFromValueVisitor());
  }


  public String getSafeHibernateTypeName(Property p) {
    return (String) p.getValue().accept(new EntityNameFromValueVisitor(false));
  }
View Full Code Here

TOP

Related Classes of org.hibernate.tool.hbm2x.visitor.EntityNameFromValueVisitor

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.