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 ); }
@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; }
@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; }
@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; }
@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; }
@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; }
@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; }
@NotFound(action = NotFoundAction.IGNORE) @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "StrCode") public Organization getOrganization() { return organization; }
@NotFound(action = NotFoundAction.IGNORE) @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "KmkCode") public Account getAccount() { return account; }