/** * @param value Persistent property. * @return {@code false} if lack of associated entity shall raise an exception, {@code true} otherwise. */ public static boolean ignoreNotFound(Value value) { if ( value instanceof ManyToOne ) { return ( (ManyToOne) value ).isIgnoreNotFound(); } else if ( value instanceof OneToMany ) { return ( (OneToMany) value ).isIgnoreNotFound(); } return false; } }
private EntityType getEntityType() { return metadata.getTypeResolver().getTypeFactory().manyToOne( getReferencedEntityName(), true, null, false, false, isIgnoreNotFound(), false ); }
/** * @param value Persistent property. * @return {@code false} if lack of associated entity shall raise an exception, {@code true} otherwise. */ public static boolean ignoreNotFound(ValueMapping value) { if ( value instanceof ManyToOne ) { return ( (ManyToOne) value ).isIgnoreNotFound(); } else if ( value instanceof OneToMany ) { return ( (OneToMany) value ).isIgnoreNotFound(); } return false; } }
private EntityType getEntityType() { return TypeFactory.manyToOne( getReferencedEntityName(), null, false, false, isEmbedded(), isIgnoreNotFound() ); }
private EntityType getEntityType() { return TypeFactory.manyToOne( getReferencedEntityName(), null, false, isEmbedded(), isIgnoreNotFound() ); }
private EntityType getEntityType() { return mappings.getTypeResolver().getTypeFactory().manyToOne( getReferencedEntityName(), null, false, false, isEmbedded(), isIgnoreNotFound(), false ); }
private EntityType getEntityType() { return mappings.getTypeResolver().getTypeFactory().manyToOne( getReferencedEntityName(), null, false, false, isEmbedded(), isIgnoreNotFound(), false ); }