Hi to all, i need some suggestion for a DAO implementation of a database.
First question.
How i represent a foreign key into a dao class? for example, i have this two tables:
book(id, title, author)
author(name, age)
where book(author) is a foreign key on author(name)
Just i need to code foreign key as a
String (in this case) like
Or is not a good practice?
Second question.
With dao i can do CRUD operations, but if i need to make a query that join two or more table, how can i do?