> On a side note, is it possible to specify an alternate Java type in the
> modeler for an ObjEntity attribute? In our old EOF model, we have many
> instances of a custom data type (MOFixed[1-6] which is an integer in the
> database) that I'd like to try to replicate if possible. For example, a
> MOFixed3 represents 6.875 as 6875 in the database ... I thought at
> first I could just subclass java.lang.Integer, but they made it a final
> class (gotta love Java).
You can enter your own class the for any ObjAttribute in the Modeler. To
make it work with Cayenne you will need to install a custom ExtendedType:
http://objectstyle.org/cayenne/api/cayenne/org/objectstyle/cayenne/access/types/package-summary.html
(I need to realy document ExtendedTypes in the User Guide)...
Andrus
This archive was generated by hypermail 2.0.0 : Thu Dec 02 2004 - 13:22:24 EST