Qu'entends tu par holders ?
Ce que j'ai vu dans xdoclet c'est qu'il permet de g�n�rer des DTOs li�s aux EJBs entity mais ce n'est pas forc�ment la voie qui me para�t la plus int�ressante
C'est quand meme utile d'avoir des generateurs comme EJBGen ou XDoclet parce qu'ils generent hashCode() et equals() pour toi. Voici un exemple d'implementation genere par EJBGen pour un DTO:
public boolean equals(Object other) {
if (other == this) return true;
if (null == other) return false;
if (other.hashCode() != hashCode()) return false;
try {
AccountValue other2 = (AccountValue) other;
return (this.m_balance == other2.m_balance) && (this.m_accountId.equals(other2.m_accountId)) && (this.m_accountType.equals(other2.m_accountType));
}
catch(ClassCastException ex) {
return false;
}
}
-- C�dric http://beust.com/weblog
