本文整理了Java中org.hibernate.criterion.Restrictions.geProperty
方法的一些代码示例,展示了Restrictions.geProperty
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Restrictions.geProperty
方法的具体详情如下:
包路径:org.hibernate.criterion.Restrictions
类名称:Restrictions
方法名:geProperty
[英]Apply a "greater than or equal" constraint to two properties
[中]对两个特性应用“大于或等于”约束
代码示例来源:origin: hibernate/hibernate-orm
/**
* Creates a greater-than-or-equal-to restriction between 2 properties
*
* @param other The other property to compare against
*
* @return The restriction
*
* @see Restrictions#geProperty(String, String)
*/
@SuppressWarnings("UnusedDeclaration")
public PropertyExpression geProperty(String other) {
return Restrictions.geProperty( getPropertyName(), other );
}
代码示例来源:origin: hibernate/hibernate-orm
/**
* Creates a greater-than-or-equal-to restriction between 2 properties
*
* @param other The other property to compare against
*
* @return The restriction
*
* @see Restrictions#geProperty(String, String)
*/
@SuppressWarnings("UnusedDeclaration")
public PropertyExpression geProperty(Property other) {
return Restrictions.geProperty( getPropertyName(), other.getPropertyName() );
}
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
public PropertyExpression geProperty(String other) {
return Restrictions.geProperty( getPropertyName(), other );
}
代码示例来源:origin: TGAC/miso-lims
@Override
public void restrictPaginationByFulfilled(Criteria criteria, boolean isFulfilled, Consumer<String> errorHandler) {
criteria.add(isFulfilled ? Restrictions.geProperty("loaded", "remaining")
: Restrictions.ltProperty("loaded", "remaining"));
}
代码示例来源:origin: hibernate/hibernate
public PropertyExpression geProperty(String other) {
return Restrictions.geProperty( getPropertyName(), other );
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
public PropertyExpression geProperty(String other) {
return Restrictions.geProperty( getPropertyName(), other );
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
public PropertyExpression geProperty(String other) {
return Restrictions.geProperty( getPropertyName(), other );
}
代码示例来源:origin: org.grails/grails-datastore-gorm-hibernate-core
@Override
public Criterion toHibernateCriterion(AbstractHibernateQuery hibernateQuery, Query.GreaterThanEqualsProperty criterion, String alias) {
String propertyName = getPropertyName(criterion, alias);
return Restrictions.geProperty(propertyName, criterion.getOtherProperty());
}
});
代码示例来源:origin: com.arsframework/ars-database
/**
* 获取属性大于或等于匹配条件
*
* @param property 属性名
* @param other 属性名
* @return 条件匹配对象
*/
protected Criterion getPropertyGreaterEqualCriterion(String property, String other) {
return Restrictions.geProperty(this.getCriteriaAlias(property), this.getCriteriaAlias(other));
}
代码示例来源:origin: org.grails/grails-hibernate
@Override
public org.hibernate.criterion.Criterion toHibernateCriterion(HibernateQuery hibernateQuery, Query.Criterion criterion, String alias) {
Query.GreaterThanEqualsProperty eq = (Query.GreaterThanEqualsProperty) criterion;
return Restrictions.geProperty(calculatePropertyName(eq.getProperty(), alias), eq.getOtherProperty());
}
});
代码示例来源:origin: hibernate/hibernate
public PropertyExpression geProperty(Property other) {
return Restrictions.geProperty( getPropertyName(), other.getPropertyName() );
}
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
public PropertyExpression geProperty(Property other) {
return Restrictions.geProperty( getPropertyName(), other.getPropertyName() );
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
public PropertyExpression geProperty(Property other) {
return Restrictions.geProperty( getPropertyName(), other.getPropertyName() );
}
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
public PropertyExpression geProperty(Property other) {
return Restrictions.geProperty( getPropertyName(), other.getPropertyName() );
}
代码示例来源:origin: org.grails/grails-datastore-gorm-hibernate-core
/**
* Creates a Criterion that tests if the first property is greater than or equal to the second property
* @param propertyName The first property name
* @param otherPropertyName The second property name
* @return A Criterion instance
*/
public org.grails.datastore.mapping.query.api.Criteria geProperty(String propertyName, String otherPropertyName) {
if (!validateSimpleExpression()) {
throwRuntimeException(new IllegalArgumentException("Call to [geProperty] with propertyName [" +
propertyName + "] and other property name [" + otherPropertyName + "] not allowed here."));
}
propertyName = calculatePropertyName(propertyName);
otherPropertyName = calculatePropertyName(otherPropertyName);
addToCriteria(Restrictions.geProperty(propertyName, otherPropertyName));
return this;
}
代码示例来源:origin: org.grails/grails-hibernate
/**
* Creates a Criterion that tests if the first property is greater than or equal to the second property
* @param propertyName The first property name
* @param otherPropertyName The second property name
* @return A Criterion instance
*/
public org.grails.datastore.mapping.query.api.Criteria geProperty(String propertyName, String otherPropertyName) {
if (!validateSimpleExpression()) {
throwRuntimeException(new IllegalArgumentException("Call to [geProperty] with propertyName [" +
propertyName + "] and other property name [" + otherPropertyName + "] not allowed here."));
}
propertyName = calculatePropertyName(propertyName);
otherPropertyName = calculatePropertyName(otherPropertyName);
addToCriteria(Restrictions.geProperty(propertyName, otherPropertyName));
return this;
}
代码示例来源:origin: org.fornax.cartridges/fornax-cartridges-sculptor-framework
return Restrictions.gtProperty(makePathWithAlias(crit.getPropertyFullName()), (String) crit.getFirstOperant());
} else if (Operator.GreatThanOrEqualProperty.equals(operator)) {
return Restrictions.geProperty(makePathWithAlias(crit.getPropertyFullName()), (String) crit.getFirstOperant());
} else {
return null;
内容来源于网络,如有侵权,请联系作者删除!