Skip to content

Instantly share code, notes, and snippets.

View hprange's full-sized avatar

Henrique Prange hprange

View GitHub Profile
@hprange
hprange / EOComparisonSupport.java
Created June 12, 2019 14:17
A class to compare EOs according to the eoEquals contract when evaluating qualifiers in memory.
package org.wocommunity.eof;
import com.webobjects.eocontrol.EOEnterpriseObject;
import com.webobjects.eocontrol.EOQualifier.ComparisonSupport;
import com.webobjects.foundation.NSKeyValueCoding;
import er.extensions.eof.ERXEOControlUtilities;
/**
* The {@code EOComparisonSupport} extends the {@code EOQualifier.ComparisonSupport} class and evaluates all
@hprange
hprange / ERXBatchProcessor.java
Last active June 15, 2022 00:46
ERXBatchProcessor simplifies operations that change a large number of EOs
package er.extensions.eof;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import com.webobjects.eocontrol.EOEditingContext;
import com.webobjects.eocontrol.EOEnterpriseObject;
import com.webobjects.eocontrol.EOFetchSpecification;
import com.webobjects.foundation.NSArray;