Hey guys, I need help, I'm a beginner in java, and I'm doing a college job where it's going to be a mini social network, in the beginning let's do user registration, inside the beans class, user receives a Friend List I'm com a doubt.
My question, how am I going to relate this to DAO and if I need to add some data in the USER_AMIGO table with status etc ???
Someone can give me an example.
Tables in the USER and the other FRIEND_USER.
Tabela USUARIO
+-----------+------------------+----------+----------------+
| CD_LOGIN | NOME_DE_USUARIO | SENHA | EMAIL_USUARIO |
+-----------+------------------+----------+----------------+
| 1 | test | test | test |
| 2 | test | test | test |
+---------+----------+----------+--------------------------+
Tabela AMIGO_USUARIO
+-----------+---------------+-----------------+
| CD_AMIGO | EMAIL_USUARIO | EMAIL_USUARIO2 |
+-----------+---------------+-----------------+
| 1 | test | test |
| 2 | test | test |
+---------+----------+----------+-------------+