I want to use JPA in my webstation.my webstation be builded by JSF. I don`t know how to use JPA in JSF.plecse help.give me the faces-config.xml and persistence.xml,java code
thank you!!
Mark Spritzler
ranger
Sheriff
Joined: Feb 05, 2001
Posts: 15134
posted
"TCL CXH", Welcome to the JavaRanch.
We're a friendly group, but we do require members to have valid display names.
Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.
Please edit your profile and correct your display name since accounts with invalid display names get deleted.
Well the good thing is using JPA is the same no matter where you use it, becuase you are using JSF has no bearing on the matter. Your use of JPA will be in your Plain Old Java objects, and not in any jsp/html/xhtml pages.
As far as how to set up JPA and use it, there are lots of tutorials on the web that you can find through Google.
Good Luck, and any JPA specific questions can go into the ORM forum we have.