views:

67

answers:

2

Hello...

I'm trying to use JPA to connect my JSF components to database but the problem is that I can't figure out how to get this all combination works.I have done entity classes from database, also create persistence.xml file and now I don't know where to go!! I don't know how to use entity manager and entity manager factory.

Is there any tutorial helps me how to use Java EE 5,JSF 1.2 and JPA in netbeans?

any help appreciated

Thanks

A: 

There's a tutorial on the Netbeans site about using JPA & JSF1.2 with Hibernate. Hopefully that'll be a good place to start.

TMN
Thanks but this so simple and generate jsf pages automatically. For me I have jsf pages created but I want to connect them to database
Feras
A: 

You can download this sample application mentioned in this blog. It runs on GlassFish but it is an Eclipse project. You can easily import the Eclipse project into NetBeans.

Ross