java类org.hibernate.annotations.NotFoundAction的实例源码

AssociationAttribute.java 文件源码 项目:lams 阅读 61 收藏 0 点赞 0 评论 0
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 );
}
REmbeddedReference.java 文件源码 项目:engerek 阅读 32 收藏 0 点赞 0 评论 0
@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;
}
RObjectReference.java 文件源码 项目:engerek 阅读 32 收藏 0 点赞 0 评论 0
@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;
}
RCertWorkItemReference.java 文件源码 项目:engerek 阅读 37 收藏 0 点赞 0 评论 0
@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;
}
RAssignmentReference.java 文件源码 项目:engerek 阅读 41 收藏 0 点赞 0 评论 0
@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;
}
REmbeddedReference.java 文件源码 项目:midpoint 阅读 30 收藏 0 点赞 0 评论 0
@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;
}
RObjectReference.java 文件源码 项目:midpoint 阅读 34 收藏 0 点赞 0 评论 0
@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;
}
RCertWorkItemReference.java 文件源码 项目:midpoint 阅读 43 收藏 0 点赞 0 评论 0
@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;
}
RAssignmentReference.java 文件源码 项目:midpoint 阅读 36 收藏 0 点赞 0 评论 0
@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;
}
REmbeddedReference.java 文件源码 项目:midpoint 阅读 36 收藏 0 点赞 0 评论 0
@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;
}
RObjectReference.java 文件源码 项目:midpoint 阅读 37 收藏 0 点赞 0 评论 0
@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;
}
RCertWorkItemReference.java 文件源码 项目:midpoint 阅读 44 收藏 0 点赞 0 评论 0
@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;
}
RAssignmentReference.java 文件源码 项目:midpoint 阅读 39 收藏 0 点赞 0 评论 0
@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;
}
FixedSystemCost.java 文件源码 项目:Harvest-JP 阅读 29 收藏 0 点赞 0 评论 0
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "StrCode")
public Organization getOrganization() {
       return organization;
   }
FixedSystemCost.java 文件源码 项目:Harvest-JP 阅读 30 收藏 0 点赞 0 评论 0
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "KmkCode")
   public Account getAccount() {
       return account;
   }
BaseTransfer.java 文件源码 项目:Harvest-JP 阅读 28 收藏 0 点赞 0 评论 0
@NotFound(action = NotFoundAction.IGNORE)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "KmkCode")
public Account getAccount() {
    return account;
}


问题


面经


文章

微信
公众号

扫码关注公众号