1
Eae 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, at the beginning we will make user registration, within the class Beans, user receives a listfriends I’m having a doubt.
my question, how I will relate this in the DAO and if I need to add some data in the table USUARIO_AMIGO with status etc ???
Can someone give me an example.
Tables in the USUARIO database and the other AMIGO_USUARIO.
             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       |           
+---------+----------+----------+-------------+
						
Is using Hibernate?
– DiegoAugusto
this is a right framework? I can’t use any kind of framework, work rule :/
– Guilherme Almeida