I have a model Mensagem
object that has the attributes Tipo
and Descricao
, the information of this object must be written to a database, for this I created a DAO class responsible for inserting it in the database but depending of the value of the Tipo
to Mensagem
attribute should be written to another table, how to fit this multiplicity of BD write options into a DAO class?