Example usage for org.hibernate.mapping OneToMany setIgnoreNotFound

List of usage examples for org.hibernate.mapping OneToMany setIgnoreNotFound

Introduction

In this page you can find the example usage for org.hibernate.mapping OneToMany setIgnoreNotFound.

Prototype

public void setIgnoreNotFound(boolean ignoreNotFound) 

Source Link

Usage

From source file:org.codehaus.groovy.grails.orm.hibernate.cfg.AbstractGrailsDomainBinder.java

License:Apache License

protected void bindOneToMany(GrailsDomainClassProperty currentGrailsProp, OneToMany one, Mappings mappings) {
    one.setReferencedEntityName(currentGrailsProp.getReferencedPropertyType().getName());
    one.setIgnoreNotFound(true);
}

From source file:org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsDomainBinder.java

License:Apache License

private static void bindOneToMany(GrailsDomainClassProperty currentGrailsProp, OneToMany one,
        @SuppressWarnings("unused") Mappings mappings) {
    one.setReferencedEntityName(currentGrailsProp.getReferencedPropertyType().getName());
    one.setIgnoreNotFound(true);
}

From source file:org.grails.orm.hibernate.cfg.AbstractGrailsDomainBinder.java

License:Apache License

protected void bindOneToMany(org.grails.datastore.mapping.model.types.OneToMany currentGrailsProp,
        OneToMany one, Mappings mappings) {
    one.setReferencedEntityName(currentGrailsProp.getAssociatedEntity().getName());
    one.setIgnoreNotFound(true);
}

From source file:org.grails.orm.hibernate.cfg.GrailsDomainBinder.java

License:Apache License

protected void bindOneToMany(org.grails.datastore.mapping.model.types.OneToMany currentGrailsProp,
        OneToMany one, InFlightMetadataCollector mappings) {
    one.setReferencedEntityName(currentGrailsProp.getAssociatedEntity().getName());
    one.setIgnoreNotFound(true);
}