Message |
tim@hoop.co.uk writes: > cool, i assume that this will be integrated as 'trigger' in melati? You would override the auto-generated setSurname method to update the Metaphone pronunciation of the contact's name every time it was changed: 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.
|