public void awakeFromInsertion(EOEditingContext ec) {
super.awakeFromInsertion(ec);
setResourceType(ResourceType.Resource2);
}
ew.
## Specifies that you want restricting qualifiers "applied" to your
newly
## inserted objects. For instance, if you have an entity that is part
of
## single table inheritance and your restricting qualifier only uses
## EOAndQualifiers and EOKeyValueQualifiers, ERX can interpret the
qualifier
## and make your EO's automatically match the restricting qualifier.
This
## allows you to skip the awakeFromInsertion step where you have to
remember
## to make your EO match the restricting qualifier you chose in your
model.
#
er.extensions.ERXEnterpriseObject.applyRestrictingQualifierOnInsert=true
Also, in case it matters, resourceType is a javaEnum.
no way this works, right? the restricting qualifier as defined in your
model is not going to parse as an enum value, so I'm guessing this
totally breaks ...
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]