I understand your suggestion of overriding onload to perform transformation, however this can be tedious if I've multiple domains to be used over 100 EJBs. Just subclasses of TextDomain alone, I'd have PhoneNumberDomain, AddressDomain, ZipDomain, etc.
These domain classes contains validation logic, formatting logic and wraps only a single basic java type, such as String.
Is the mapping from java object types to SQL data types implementation specific? [ February 12, 2007: Message edited by: Chu Tan ]