org.hibernate.annotations.Where.clause()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(180)

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

Where.clause介绍

暂无

代码示例

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

public void setWhere(Where whereAnn) {
  if ( whereAnn != null ) {
    where = whereAnn.clause();
  }
}

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

public void setWhere(Where whereAnn) {
  if ( whereAnn != null ) {
    where = whereAnn.clause();
  }
}

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

Where whereOnClass = property.getElementClass().getAnnotation( Where.class );
  if ( whereOnClass != null ) {
    whereOnClassClause = whereOnClass.clause();
String whereOnCollectionClause = null;
if ( whereOnCollection != null ) {
  whereOnCollectionClause = whereOnCollection.clause();

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

public void setWhere(Where whereAnn) {
  if ( whereAnn != null ) {
    where = whereAnn.clause();
  }
}

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

public void setWhere(Where whereAnn) {
  if ( whereAnn != null ) {
    where = whereAnn.clause();
  }
}

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

public void setWhere(Where whereAnn) {
  if ( whereAnn != null ) {
    where = whereAnn.clause();
  }
}

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

public void setWhere(Where whereAnn) {
  if ( whereAnn != null ) {
    where = whereAnn.clause();
  }
}

代码示例来源:origin: br.com.jarch/jarch-apt

private static void validWhereLogicExclusionManyToOne(ProcessingEnvironment processingEnv, Element element) {
  final Where anotacaoFilter = element.getAnnotation(Where.class);
  if (anotacaoFilter != null && JpaUtils.WHERE_LOGIC_EXCLUSION.equals(anotacaoFilter.clause())) {
    processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR, "JARCH ERROR: Exclusão lógica não pode conter @ManyToOne, se for um mapeamento BI-DIRECIONAL remova esse mapeamento tornando UNI-DIRECIONAL ou transforme em exclusão física", element);
  }
}

代码示例来源:origin: br.com.jarch/jarch-util

public static boolean isExclusionLogic(Class<?> clazzEntity) {
  Where whereAnnotation = clazzEntity.getAnnotation(Where.class);
  if ((whereAnnotation != null && (whereAnnotation.clause().equals(WHERE_LOGIC_EXCLUSION)))) {
    return true;
  }
  return Arrays
      .stream(clazzEntity.getAnnotationsByType(Filter.class))
      .anyMatch(a -> a.name().equals(LOGIC_EXCLUSION) && a.condition().equals(WHERE_LOGIC_EXCLUSION));
}

代码示例来源:origin: br.com.jarch/jarch-utils

public static boolean isExclusionLogic(Class<?> clazzEntity) {
  Where whereAnnotation = clazzEntity.getAnnotation(Where.class);
  if ((whereAnnotation != null && (whereAnnotation.clause().equals(WHERE_LOGIC_EXCLUSION)))) {
    return true;
  }
  return Arrays
      .stream(clazzEntity.getAnnotationsByType(Filter.class))
      .anyMatch(a -> a.name().equals(LOGIC_EXCLUSION) && a.condition().equals(WHERE_LOGIC_EXCLUSION));
}

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

String whereClause = where == null ? null : where.clause();
if ( StringHelper.isNotEmpty( whereClause ) ) {
  if ( hasAssociationTable ) {

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

Where whereOnClass = property.getElementClass().getAnnotation( Where.class );
if ( whereOnClass != null ) {
  String clause = whereOnClass.clause();
  if ( StringHelper.isNotEmpty( clause ) ) {
    whereBuffer.append( clause );
String clause = whereOnCollection.clause();
if ( StringHelper.isNotEmpty( clause ) ) {
  if ( whereBuffer.length() > 0 ) {

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

String whereClause = where == null ? null : where.clause();
if ( StringHelper.isNotEmpty( whereClause ) ) {
  if ( hasAssociationTable ) {

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

String whereClause = where == null ? null : where.clause();
if ( StringHelper.isNotEmpty( whereClause ) ) {
  if ( hasAssociationTable ) {

相关文章