File:  [NeXTSTEP 3.3 examples] / Examples / EnterpriseObjects / FlatFileDataSource / example.eomodel
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:42 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

{
    EOModelVersion = 1; 
    adaptorName = Oracle7; 
    connectionDictionary = {hostMachine = waddel; password = sqa; serverId = test; userName = sqa; }; 
    entities = (
	{
	    attributes = (
		{calendarFormat = Text; name = company; valueClassName = NSString; }, 
		{calendarFormat = Text; name = id; valueClassName = NSString; }, 
		{calendarFormat = Text; name = name; valueClassName = NSString; }, 
		{calendarFormat = Text; name = type; valueClassName = NSString; }
	    ); 
	    attributesUsedForLocking = (id, name, company, type); 
	    className = EOGenericRecord; 
	    classProperties = (id, name, company, type, toItem); 
	    externalName = Product.table; 
	    name = Product; 
	    primaryKeyAttributes = (id); 
	    relationships = (
		{
		    destination = Item; 
		    isToMany = Y; 
		    joins = (
			{
			    destinationAttribute = ProductId; 
			    joinOperator = EOJoinEqualTo; 
			    joinSemantic = EOInnerJoin; 
			    sourceAttribute = id; 
			}
		    ); 
		    name = toItem; 
		}
	    ); 
	}, 
	{
	    attributes = (
		{calendarFormat = Text; name = ProductId; valueClassName = NSString; }, 
		{calendarFormat = Text; name = id; valueClassName = NSString; }, 
		{calendarFormat = Text; name = name; valueClassName = NSString; }, 
		{calendarFormat = Text; name = price; valueClassName = NSString; }, 
		{calendarFormat = Text; name = qty; valueClassName = NSString; }, 
		{calendarFormat = Text; name = serialNumber; valueClassName = NSString; }
	    ); 
	    attributesUsedForLocking = (serialNumber, name, price, ProductId, id, qty); 
	    className = EOGenericRecord; 
	    classProperties = (serialNumber, name, price, ProductId, id, qty); 
	    externalName = Item.table; 
	    name = Item; 
	    primaryKeyAttributes = (id); 
	}
    ); 
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.