summaryrefslogtreecommitdiff
path: root/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/TestObjectClassDesc.java
blob: 409d9007516f9524ed5c2d4ba8da9b75489bb8dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package net.wotonomy.test;

import net.wotonomy.control.EOClassDescription;
import net.wotonomy.foundation.NSArray;

/**
 * A simple class description for testing.
 */
public class TestObjectClassDesc extends EOClassDescription {
	public TestObjectClassDesc() {
		super(TestObject.class);
	}

	public EOClassDescription classDescriptionForDestinationKey(String detailKey) {
		if ("childList".equals(detailKey)) {
			return this;
		}
		return null;
	}

	public NSArray toManyRelationshipKeys() {
		return new NSArray("childList");
	}

}