Creating Prototype Attributes
The prototypes you can assign to attributes can come from
two places:
- 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.
- An entity named EOPrototypes.
To create a prototype attribute, first create a prototype
entityan entity named either EOAdaptorNamePrototypes
or EOPrototypesand 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
© 2002 Apple Computer, Inc. (Last Updated November 2002)