public Person findByPrimaryKey(int personId) { Person _result = null; Operation _op = null; Object _related = null; { I3O3L3 _bean = I3O3L3.POOL.getOrConstruct(); _bean.setI1AsInteger(personId); MithraObjectPortal _portal = this.getMithraObjectPortal(); _related = _portal.getAsOneFromCacheForFind(_bean, _bean, forPrimaryKey, null, null); _bean.release(); } if (!(_related instanceof NulledRelation)) _result = (Person) _related; if (_related == null) { _op = this.personId().eq(personId); } if (_op != null) { _result = this.findOne(_op); } return _result; } }
public Person findByPrimaryKey(int personId) { Person _result = null; Operation _op = null; Object _related = null; { I3O3L3 _bean = I3O3L3.POOL.getOrConstruct(); _bean.setI1AsInteger(personId); MithraObjectPortal _portal = this.getMithraObjectPortal(); _related = _portal.getAsOneFromCacheForFind(_bean, _bean, forPrimaryKey, null, null); _bean.release(); } if (!(_related instanceof NulledRelation)) _result = (Person) _related; if (_related == null) { _op = this.personId().eq(personId); } if (_op != null) { _result = this.findOne(_op); } return _result; } }
/** maps to PERSON.PERSON_ID **/ public static IntegerAttribute<Person> personId() { return finder.personId(); }
/** maps to PERSON.PERSON_ID **/ public static IntegerAttribute<Person> personId() { return finder.personId(); }
public Operation eq(Person other) { return this.personId().eq(other.getPersonId()) ; } // this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.
public Operation eq(Person other) { return this.personId().eq(other.getPersonId()) ; } // this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.