database « JPA « JSF Q&A

1. How to download a file stored in a database with JSF 2.0

I need to download a file stored in a database. I think i did correctly the query and called it i just dont know how can i connect that to a ...

2. problem to insert in a database

I'm starting with hibernate, I want to insert data into a table that is associated with another table in a relationship ManyToMany. When I insert the data, it is inserted into ...

3. Delete database rows with EJB 3.0

I want to delete a row in a database, so i created an EJB that does it for me

@Stateless(name = "ejbs/AdminAcountEJB")
public class AdminAcountEJB implements IAdminAcountEJB  {