org.hibernate.mapping.Property.isValid()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(81)

本文整理了Java中org.hibernate.mapping.Property.isValid()方法的一些代码示例,展示了Property.isValid()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.isValid()方法的具体详情如下:
包路径:org.hibernate.mapping.Property
类名称:Property
方法名:isValid

Property.isValid介绍

暂无

代码示例

代码示例来源:origin: hibernate/hibernate-orm

public void validate(Mapping mapping) throws MappingException {
  Iterator iter = getPropertyIterator();
  while ( iter.hasNext() ) {
    Property prop = (Property) iter.next();
    if ( !prop.isValid( mapping ) ) {
      throw new MappingException(
          "property mapping has wrong number of columns: " +
              StringHelper.qualify( getEntityName(), prop.getName() ) +
              " type: " +
              prop.getType().getName()
      );
    }
  }
  checkPropertyDuplication();
  checkColumnDuplication();
}

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

public void validate(Mapping mapping) throws MappingException {
  Iterator iter = getPropertyIterator();
  while ( iter.hasNext() ) {
    Property prop = (Property) iter.next();
    if ( !prop.isValid(mapping) ) {
      throw new MappingException(
          "property mapping has wrong number of columns: " +
          StringHelper.qualify( getEntityName(), prop.getName() ) +
          " type: " +
          prop.getType().getName()
        );
    }
  }
  checkPropertyDuplication();
  checkColumnDuplication();
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

public void validate(Mapping mapping) throws MappingException {
  Iterator iter = getPropertyIterator();
  while ( iter.hasNext() ) {
    Property prop = (Property) iter.next();
    if ( !prop.isValid(mapping) ) {
      throw new MappingException(
          "property mapping has wrong number of columns: " +
          StringHelper.qualify( getEntityName(), prop.getName() ) +
          " type: " +
          prop.getType().getName()
        );
    }
  }
  checkPropertyDuplication();
  checkColumnDuplication();
}

代码示例来源:origin: hibernate/hibernate

public void validate(Mapping mapping) throws MappingException {
  Iterator iter = getPropertyIterator();
  while ( iter.hasNext() ) {
    Property prop = (Property) iter.next();
    if ( !prop.isValid(mapping) ) {
      throw new MappingException(
        "property mapping has wrong number of columns: " +
        StringHelper.qualify( getEntityName(), prop.getName() ) +
        " type: " +
        prop.getType().getName()
      );
    }
  }
  checkPropertyDuplication();
  checkColumnDuplication();
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

public void validate(Mapping mapping) throws MappingException {
  Iterator iter = getPropertyIterator();
  while ( iter.hasNext() ) {
    Property prop = (Property) iter.next();
    if ( !prop.isValid(mapping) ) {
      throw new MappingException(
          "property mapping has wrong number of columns: " +
          StringHelper.qualify( getEntityName(), prop.getName() ) +
          " type: " +
          prop.getType().getName()
        );
    }
  }
  checkPropertyDuplication();
  checkColumnDuplication();
}

代码示例来源:origin: org.hibernate.orm/hibernate-core

@Override
public void validate() throws MappingException {
  Iterator iter = getPropertyIterator();
  while ( iter.hasNext() ) {
    Property prop = (Property) iter.next();
    if ( !prop.isValid(  ) ) {
      throw new MappingException(
          "property mapping has wrong number of columns: " +
              StringHelper.qualify( getEntityName(), prop.getName() ) +
              " type: " +
              prop.getValueMapping().getJavaTypeMapping().getTypeName()
      );
    }
  }
  checkPropertyDuplication();
  checkColumnDuplication();
}

相关文章

微信公众号

最新文章

更多