Basic newbie question

Hi

I'm working on a R&D project

I have created my java objects for my business model - the java classes are generated from a UML model. I have used the Java Persistence api to annotate them as entities etc. This has enabled me to create a database (inheritance based table join). All my java is defined in its own package etc. I'm fine with this bit.

I want to put a JSF front end on my application so that a person may go to a page and create for example a new product specification, press a button and persist the data on the screen to the database (screen data will mirror the pojo). (Also do other CRUD stuff)

Bit I'm unsure about when using netbeans. Do I define new product() in the backing bean (class Products extends AbstractPageBean), call an entity manager and persist(Product product). Alternatively should I somehow call a

Session or Application bean to do this for me (is it one Application bean per application or per page)

regards

Steve

[1009 byte] By [steveora] at [2007-11-27 2:21:51]
# 1
For those who are interested...found what I was looking for atUsing Java Persistence With JavaServer Faces Technology, and Using a Model Facade http://java.sun.com/mailers/techtips/enterprise/2006/TechTips_Nov06.html#1Steve
steveora at 2007-7-12 2:25:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...