Message |
William, > You would override the auto-generated setSurname method to update the > Metaphone pronunciation of the contact's name every time it was > changed: this is at the app level, I was wondering if melati should be more generally SOUNDEX aware, so in your DSD you would put: String name (size = 60) (displayname = "Full name") (description = "The user's real name") (displayorderpriority = 0) (primarydisplay) (indexed) (soundex); ? timj > > public class Contact extends ContactBase { > // Programmer's app-specific code here > > public void setSurname(String name) { > super.setSurname(name); > setSurname_mp(Metaphone.pronunciation(name)); > } > } > > I think that's the most elegant and transparent and nearly the most > concise way of doing it. >
|