Java 类org.hibernate.annotations.NotFoundAction 实例源码

项目:lams    文件:AssociationAttribute.java   
private boolean ignoreNotFound() {
    NotFoundAction action = NotFoundAction.EXCEPTION;
    AnnotationInstance notFoundAnnotation = JandexHelper.getSingleAnnotation(
            annotations(),
            HibernateDotNames.NOT_FOUND
    );
    if ( notFoundAnnotation != null ) {
        AnnotationValue actionValue = notFoundAnnotation.value( "action" );
        if ( actionValue != null ) {
            action = Enum.valueOf( NotFoundAction.class, actionValue.asEnum() );
        }
    }

    return NotFoundAction.IGNORE.equals( action );
}
项目:engerek    文件:REmbeddedReference.java   
@ForeignKey(name="none")
@ManyToOne(fetch = FetchType.LAZY, optional = true)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true)
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
public RObject getTarget() {
    return null;
}
项目:engerek    文件:RObjectReference.java   
@ForeignKey(name="none")
@ManyToOne(fetch = FetchType.LAZY, optional = true, targetEntity = RObject.class)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true)
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
public T getTarget() {
    return target;
}
项目:engerek    文件:RCertWorkItemReference.java   
@ForeignKey(name="none")
@ManyToOne(fetch = FetchType.LAZY, optional = true)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true)
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
// only for HQL use
public RObject getTarget() {
    return null;
}
项目:engerek    文件:RAssignmentReference.java   
@ForeignKey(name="none")
@ManyToOne(fetch = FetchType.LAZY, optional = true)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true)
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
// declared for HQL use only
public RObject getTarget() {
    return null;
}
项目:midpoint    文件:REmbeddedReference.java   
@ManyToOne(fetch = FetchType.LAZY, optional = true)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true, foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
public RObject getTarget() {
    return null;
}
项目:midpoint    文件:RObjectReference.java   
@ManyToOne(fetch = FetchType.LAZY, optional = true, targetEntity = RObject.class)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true,
        foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
public T getTarget() {
    return target;
}
项目:midpoint    文件:RCertWorkItemReference.java   
@ForeignKey(name="none")
@ManyToOne(fetch = FetchType.LAZY, optional = true)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true)
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
// only for HQL use
public RObject getTarget() {
    return null;
}
项目:midpoint    文件:RAssignmentReference.java   
@ForeignKey(name="none")
@ManyToOne(fetch = FetchType.LAZY, optional = true)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true)
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
// declared for HQL use only
public RObject getTarget() {
    return null;
}
项目:midpoint    文件:REmbeddedReference.java   
@ManyToOne(fetch = FetchType.LAZY, optional = true)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true, foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
public RObject getTarget() {
    return null;
}
项目:midpoint    文件:RObjectReference.java   
@ManyToOne(fetch = FetchType.LAZY, optional = true, targetEntity = RObject.class)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true,
        foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
public T getTarget() {
    return target;
}
项目:midpoint    文件:RCertWorkItemReference.java   
@ForeignKey(name="none")
@ManyToOne(fetch = FetchType.LAZY, optional = true)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true)
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
// only for HQL use
public RObject getTarget() {
    return null;
}
项目:midpoint    文件:RAssignmentReference.java   
@ForeignKey(name="none")
@ManyToOne(fetch = FetchType.LAZY, optional = true)
@JoinColumn(referencedColumnName = "oid", updatable = false, insertable = false, nullable = true)
@NotFound(action = NotFoundAction.IGNORE)
@NotQueryable
// declared for HQL use only
public RObject getTarget() {
    return null;
}
项目:Harvest-JP    文件:FixedSystemCost.java   
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "StrCode")
public Organization getOrganization() {
       return organization;
   }
项目:Harvest-JP    文件:FixedSystemCost.java   
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "KmkCode")
   public Account getAccount() {
       return account;
   }
项目:Harvest-JP    文件:BaseTransfer.java   
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "KmkCode")
public Account getAccount() {
    return account;
}