Henning P. Schmiedehausen wrote:
You lock yourself into a very small number of possible field values. And you confuse your users (IMHO) by allowing two types of parameters (readable names and class names) in a single attribute.
This is just a matter of good documentation ;) Shortcuts are just allowed as replacements of the fully qualified class names, the range of values accepted is not locked to the set of shortcuts.
If you look at the Torque OM templates where the type of ID generator is determined ("native", "sequence", "idbroker" and so on), you will see, that you end up with a huge mess.
Where does Hibernate allow short-cuts / human readable names? The only place that I can remember is the fact that you can omit the packages for the class <-> table mappings if you supply a default package with the mapping itself. That would be no problem (then there would just be a typo in your example because you've written "classpath" instead of "ClassPathLocator" (the o.a.c.c.locator could be the default package).
Like Torque I guess, Hibernate supports shortcuts for id generators : http://www.hibernate.org/hib_docs/reference/en/html/mapping.html#mapping-declaration-id-generator
And for property types: http://www.hibernate.org/hib_docs/reference/en/html/mapping.html#mapping-declaration-property
Emmanuel Bourg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
