DAO class recording in multiple tables

Asked

Viewed 60 times

1

I have a model object Mensagem that has the attributes Tipo and Descricao, the information of this object must be saved in a database, so I created a DAO class responsible for inserting it in the database but depending on the value of the attribute Tipo to Mensagem should be saved to another table, such as matching this multiplicity of BD recording options in a DAO class?

  • Send me a template of what you’ve already done? What programming language are you using? , and what structure of your database? because otherwise it is not possible to know what would be this "other table" you want to insert the data!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.