Previous Next

Creating Prototype Attributes

The prototypes you can assign to attributes can come from two places:

  1. An entity named EOAdaptorNamePrototypes, where AdaptorName is the name of the adaptor for your model. WebObjects 5.2 includes an adaptor for JDBC data sources and an adaptor for JNDI data sources. So you can create a prototype entity called either EOJDBCPrototypes or EOJNDIPrototypes, depending on the adaptor you use.
  2. An entity named EOPrototypes.

To create a prototype attribute, first create a prototype entity—an entity named either EOAdaptorNamePrototypes or EOPrototypes—and add an attribute to it. Figure 4-3 shows an attribute in a prototype entity. It shows all the values that prototype attributes can define: column name, value class, external type, and value type.

Figure 4-3 A prototype entity

[image: ../Art/prototypeentity.gif]


Previous Next


© 2002 Apple Computer, Inc. (Last Updated November 2002)